/* PanQuiz — Home (EN) — page styles (v2)
   Requires: fonts.css, colors.css, typography.css, layout.css (design tokens). */

/* ---------- Base ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body, 'Open Sans', Helvetica, Arial, sans-serif);
  color: #1a1d29;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--site-primary, #005aef); }
a:hover { color: var(--site-primary-deep, #1664c3); }
img { max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@keyframes pqBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pqShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes pqTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Design-system components ---------- */
.pq-site-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35em; border: none; cursor: pointer; text-decoration: none; line-height: 1.7em; transition: all .3s ease; position: relative; }
.pq-site-btn--cta { background: var(--site-primary, #005aef); color: #fff; border-radius: var(--radius-site-button, 25px); font-family: var(--font-subhead, 'Source Sans Pro', sans-serif); font-size: var(--text-button-site, 20px); padding: .3em 2em; }
.pq-site-btn--cta:hover { color: #fff; }
.pq-site-btn--cta .pq-site-btn-arrow { opacity: 0; max-width: 0; transition: all .3s ease; font-style: normal; }
.pq-site-btn--cta:hover .pq-site-btn-arrow { opacity: 1; max-width: 1.2em; margin-left: .3em; }
.pq-site-btn--header { background: var(--site-primary-deep, #1664c3); color: #fff; border-radius: var(--radius-site-header-btn, 15px); font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 600; font-size: var(--text-button-site, 20px); padding: .3em 1.3em; }
.pq-site-btn--header:hover { opacity: .9; color: #fff; }
.pq-site-btn--play { background: var(--pq-orange, #ff6b21); color: #fff; border-radius: var(--radius-site-header-btn, 15px); font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 600; font-size: var(--text-button-site, 20px); padding: .3em 1.3em; }
.pq-site-btn--play:hover { opacity: .9; color: #fff; }
.pq-site-btn--outline-white { background: transparent; color: #fff; border: 2px solid #fff; border-radius: var(--radius-site-header-btn, 15px); font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 600; font-size: 18px; padding: .25em 1.2em; }
.pq-site-btn--outline-white:hover { opacity: .85; color: #fff; }

.pq-fancy { font-family: var(--font-display, 'Raleway', sans-serif); font-weight: 700; line-height: 1.2; margin: 0; text-wrap: pretty; }
.pq-fancy--h1 { font-size: var(--text-hero, 58px); }
.pq-fancy--h2 { font-size: var(--text-h2, 37px); }
.pq-fancy u { text-decoration: none; position: relative; display: inline-block; padding-bottom: 4px; z-index: 0; }
.pq-fancy u::after { content: ""; position: absolute; bottom: -0.125rem; left: -0.5rem; right: -0.5rem; height: 0.75rem; z-index: -1; background-repeat: no-repeat; background-size: cover; background-image: url('../assets/img/underline.svg'); }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(14,21,82,.08); }
.site-header .container { display: flex; align-items: center; gap: 28px; height: 92px; }
.site-header .logo img { height: 72px; width: auto; display: block; }
.header-menu { display: contents; }
.menu-toggle { display: none; border: 0; background: none; cursor: pointer; color: #0e1552; padding: 8px; margin-left: auto; }
.menu-toggle .mdi { font-size: 27px; line-height: 1; display: block; }
.main-nav { display: flex; gap: 6px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.main-nav a { font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 600; font-size: 15px; color: #0e1552; text-decoration: none; padding: 8px 12px; box-shadow: inset 0 -3px 0 transparent; transition: box-shadow .3s ease-out; }
.main-nav a:hover { color: #0e1552; box-shadow: inset 0 -3px 0 var(--site-accent-yellow, #f3bc34); }
.main-nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -3px 0 var(--site-accent-yellow, #f3bc34); }
.header-actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 700; font-size: 13px; letter-spacing: .5px; color: rgba(14,21,82,.65); text-decoration: none; border: 1.5px solid rgba(14,21,82,.22); border-radius: 999px; padding: 5px 13px; transition: color .3s ease, border-color .3s ease; }
.lang-switch .mdi { font-size: 15px; }
.lang-switch:hover { color: #0e1552; border-color: rgba(14,21,82,.45); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #ffffff 0%, #edf1ff 100%); border-bottom: 1px solid rgba(14,21,82,.06); overflow: hidden; }
.hero .container { padding-top: 76px; padding-bottom: 84px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 480px; min-width: 320px; }
.hero-copy h1 { color: #0e1552; }
.hero-sub { font-family: var(--font-subhead, 'Source Sans Pro', sans-serif); font-size: 22px; line-height: 1.55; color: #3c4257; margin: 24px 0 0; max-width: 560px; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 34px; }
.btn-outline-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 600; font-size: 18px; color: var(--site-primary, #005aef); text-decoration: none; border: 2px solid var(--site-primary, #005aef); border-radius: var(--radius-site-button, 25px); padding: 8px 28px; transition: background .3s ease, color .3s ease; }
.btn-outline-primary:hover { background: rgba(0,90,239,.07); color: var(--site-primary, #005aef); }
.hero-note { font-size: 14px; color: rgba(26,29,41,.6); margin: 18px 0 0; }
.hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.hero-badges img { height: 40px; width: auto; display: block; }

/* Hero demo card + animation */
.hero-demo { flex: 1 1 400px; min-width: 330px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.demo-card { width: 100%; max-width: 470px; background: #fff; border-radius: 20px; box-shadow: 0 2px 18px rgba(14,21,82,.16); padding: 22px 24px 24px; }
.demo-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.demo-avatar { width: 32px; height: 32px; border-radius: 9px; background: var(--site-primary, #005aef); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.demo-avatar .mdi { font-size: 19px; }
.demo-name { font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 700; font-size: 14px; color: #0e1552; }
.demo-role { font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 500; font-size: 12px; color: rgba(14,21,82,.5); }
.demo-timer { margin-left: auto; font-family: var(--font-mono, 'Source Code Pro', monospace); font-size: 13px; color: var(--site-primary, #005aef); background: rgba(0,90,239,.08); border-radius: 999px; padding: 3px 11px; white-space: nowrap; }
.demo-input { border: 1.5px solid rgba(14,21,82,.15); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 9px; min-height: 22px; overflow: hidden; }
.demo-input .mdi { font-size: 17px; color: rgba(14,21,82,.4); }
.demo-typed { font-size: 15px; color: #1a1d29; white-space: nowrap; }
.demo-caret { display: block; width: 2px; height: 18px; background: var(--site-primary, #005aef); animation: pqBlink 1s steps(1) infinite; }
.demo-caret.off { opacity: 0; transition: opacity .3s ease; animation: none; }
.demo-body { position: relative; margin-top: 18px; min-height: 216px; }
.demo-shimmer { opacity: 0; transition: opacity .3s ease; position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.demo-shimmer.on { opacity: 1; }
.demo-shimmer span { height: 16px; border-radius: 6px; background: linear-gradient(90deg, #eef1f6 25%, #dfe6f2 37%, #eef1f6 63%); background-size: 200% 100%; animation: pqShimmer 1.3s ease infinite; }
.demo-shimmer span:nth-child(1) { width: 88%; }
.demo-shimmer span:nth-child(2) { width: 100%; }
.demo-shimmer span:nth-child(3) { width: 64%; }
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.reveal.on { opacity: 1; transform: translateY(0); }
.demo-question { font-family: var(--font-display, 'Raleway', sans-serif); font-weight: 700; font-size: 17px; color: #0e1552; margin: 0 0 14px; line-height: 1.4; }
.demo-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-opt-inner { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(14,21,82,.1); border-radius: 10px; padding: 9px 12px; background: #fbfcfe; }
.demo-shape { width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.demo-shape--triangle { background: var(--answer-red, #e21b3c); }
.demo-shape--diamond { background: var(--answer-blue, #1368ce); }
.demo-shape--circle { background: var(--answer-gold, #d09f36); }
.demo-shape--square { background: var(--answer-green, #26890c); }
.demo-opt-text { font-size: 14px; color: #1a1d29; }
.demo-badge { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 700; font-size: 14px; color: var(--md-success, #26890c); }
.demo-badge .mdi { font-size: 18px; }
.hero-caption { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 600; font-size: 14px; color: rgba(14,21,82,.65); }
.hero-caption .mdi { font-size: 17px; color: var(--site-illustration-orange, #e8871f); }

/* ---------- 60-second video ---------- */
.video-section { padding-top: 84px; padding-bottom: 88px; }
.video-thumb { position: relative; display: block; width: 100%; max-width: 860px; margin: 44px auto 0; padding: 0; border: 0; cursor: pointer; background: none; }
.video-thumb img { display: block; width: 100%; height: auto; }
.video-play { position: absolute; inset: 0; margin: auto; width: 98px; height: 98px; border-radius: 50%; background: var(--site-primary, #005aef); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 2px 18px rgba(0,0,0,.35); transition: transform .3s ease; }
.video-play .mdi { font-size: 40px; line-height: 1; }
.video-play-label { font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; margin-top: -3px; }
.video-thumb:hover .video-play { transform: scale(1.07); }
.video-thumb:focus-visible { outline: 3px solid var(--site-primary, #005aef); outline-offset: 3px; }

.video-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,13,35,.85); display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.video-lightbox[hidden] { display: none; }
.video-lightbox-inner { position: relative; width: min(960px, 100%); }
.video-lightbox-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.video-lightbox-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-lightbox-close { position: absolute; top: -46px; right: -6px; background: none; border: 0; cursor: pointer; color: #fff; padding: 8px; display: flex; opacity: .85; transition: opacity .3s ease; }
.video-lightbox-close:hover { opacity: 1; }
.video-lightbox-close .mdi { font-size: 26px; }

/* ---------- Social proof bar ---------- */
.social-bar { background: #0e1552; }
.social-bar .container { padding-top: 22px; padding-bottom: 22px; text-align: center; }
.social-bar p { margin: 0; font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 600; font-size: 17px; color: rgba(255,255,255,.82); line-height: 1.6; }
.social-bar strong { color: #fff; font-weight: 800; }
.social-bar .dot { color: rgba(255,255,255,.38); padding: 0 12px; }

/* ---------- Sections ---------- */
.section { padding-top: 92px; padding-bottom: 84px; }
.section-tint { background: linear-gradient(180deg, #f7f9ff 0%, #edf1ff 100%); padding-top: 88px; padding-bottom: 88px; }
.section-title { font-family: var(--font-display, 'Raleway', sans-serif); font-weight: 700; font-size: var(--text-h2, 37px); color: #0e1552; text-align: center; margin: 0; line-height: 1.25; text-wrap: pretty; }
.section-sub { font-family: var(--font-subhead, 'Source Sans Pro', sans-serif); font-size: 19px; line-height: 1.6; color: #3c4257; text-align: center; max-width: 720px; margin: 18px auto 0; text-wrap: pretty; }
.steps-callout { max-width: 860px; margin: 44px auto 0; background: linear-gradient(180deg, rgba(0,90,239,.055) 0%, rgba(0,90,239,.035) 100%); border: 1px solid rgba(0,90,239,.16); border-radius: 18px; padding: 26px 36px; font-size: 17px; line-height: 1.7; color: #2b2f3a; text-align: center; text-wrap: pretty; }
.steps-callout strong { color: var(--site-primary, #005aef); }

/* ---------- How it works: alternating rows ---------- */
.how-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; margin-top: 72px; }
.how-row + .how-row { margin-top: 84px; }
.how-row--reverse { flex-direction: row-reverse; }
.how-copy { flex: 1 1 440px; min-width: 320px; }
.how-visual { flex: 1 1 440px; min-width: 320px; }
.badge-pill { display: inline-block; font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 700; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; border-radius: 999px; padding: 6px 14px; }
.badge-pill--orange { color: var(--site-illustration-orange, #e8871f); background: rgba(232,135,31,.12); }
.badge-pill--blue { color: var(--site-primary, #005aef); background: rgba(0,90,239,.09); }
.badge-pill--teal { color: var(--app-teal, #00838f); background: rgba(0,131,143,.1); }
.how-copy h3 { font-family: var(--font-display, 'Raleway', sans-serif); font-weight: 700; font-size: 27px; color: #0e1552; margin: 16px 0 14px; line-height: 1.3; text-wrap: pretty; }
.how-copy p { font-size: 15.5px; line-height: 1.7; color: #3c4257; margin: 0; text-wrap: pretty; }
.how-copy p + p { margin-top: 12px; }
.bullets { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.55; color: #2b2f3a; }
.bullets .mdi { font-size: 18px; color: var(--answer-green, #26890c); flex: 0 0 auto; margin-top: 1px; }

/* Browser-frame product mockups */
.mock { background: #fff; border-radius: 16px; box-shadow: 0 2px 18px rgba(14,21,82,.14); overflow: hidden; max-width: 520px; margin: 0 auto; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #f2f5fc; border-bottom: 1px solid rgba(14,21,82,.07); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.mock-url { margin-left: 10px; flex: 1; background: #fff; border-radius: 999px; padding: 4px 14px; font-family: var(--font-mono, 'Source Code Pro', monospace); font-size: 11px; color: rgba(14,21,82,.45); }

/* ---------- Two worlds ---------- */
.worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 32px; margin-top: 52px; }
.world-card { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 2px 18px rgba(14,21,82,.1); display: flex; flex-direction: column; }
.world-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.world-body { padding: 30px 32px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 1; }
.eyebrow { font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 700; font-size: 12px; letter-spacing: 1.6px; }
.eyebrow--edu { color: var(--site-primary, #005aef); }
.eyebrow--work { color: var(--app-teal, #00838f); }
.world-body h3 { font-family: var(--font-display, 'Raleway', sans-serif); font-weight: 700; font-size: 25px; color: #0e1552; margin: 0; }
.world-body p { font-size: 15.5px; line-height: 1.65; color: #3c4257; margin: 0; flex: 1; text-wrap: pretty; }
.arrow-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 700; font-size: 15px; color: var(--site-primary, #005aef); text-decoration: none; margin-top: 6px; transition: gap .3s ease; }
.arrow-link:hover { gap: 12px; color: var(--site-primary, #005aef); }

/* ---------- Feature ticker ---------- */
.pq-ticker { overflow: hidden; margin: 40px -24px 0; padding: 8px 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%); }
.pq-ticker-track { display: flex; width: max-content; animation: pqTicker 42s linear infinite; }
.pq-ticker:hover .pq-ticker-track { animation-play-state: paused; }
.pq-ticker-half { display: flex; align-items: center; gap: 14px; padding-right: 14px; }
.tick-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 600; font-size: 14px; color: #fff; border-radius: 999px; padding: 9px 18px; white-space: nowrap; }
.tick-pill .mdi { font-size: 16px; opacity: .9; }

/* ---------- Flip-card grid ---------- */
.diffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; margin-top: 44px; }
.pq-flip { perspective: 1200px; outline: none; height: 260px; }
.pq-flip-inner { position: relative; width: 100%; height: 100%; transition: transform .55s cubic-bezier(.55, 0, .1, 1); transform-style: preserve-3d; }
.pq-flip:hover .pq-flip-inner, .pq-flip:focus-visible .pq-flip-inner, .pq-flip:focus-within .pq-flip-inner { transform: rotateY(180deg); }
.pq-flip:focus-visible { outline: 3px solid var(--site-primary, #005aef); outline-offset: 3px; border-radius: 16px; }
.pq-flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; padding: 26px 28px; display: flex; flex-direction: column; }
.pq-flip-front { border: 1px solid rgba(14,21,82,.1); background: #fff; justify-content: flex-start; }
.pq-flip-back { transform: rotateY(180deg); justify-content: center; }
.diff-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(232,135,31,.12); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.diff-icon .mdi { font-size: 24px; color: var(--site-illustration-orange, #e8871f); }
.pq-flip-front h3 { font-family: var(--font-display, 'Raleway', sans-serif); font-weight: 700; font-size: 19px; color: #0e1552; margin: 18px 0 8px; }
.pq-flip-front p { font-size: 15px; line-height: 1.6; color: #3c4257; margin: 0; text-wrap: pretty; }
.flip-hint { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 600; font-size: 12.5px; color: rgba(14,21,82,.45); }
.flip-hint .mdi { font-size: 15px; }
.pq-flip-back h3 { font-family: var(--font-display, 'Raleway', sans-serif); font-weight: 700; font-size: 19px; color: #fff; margin: 0 0 12px; }
.pq-flip-back p { font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,.92); margin: 0; text-wrap: pretty; }

/* ---------- Use cases ---------- */
.usecases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
.usecase { background: #fff; border: 1px solid rgba(14,21,82,.1); border-radius: 16px; padding: 26px 24px; display: flex; flex-direction: column; }
.uc-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(232,135,31,.12); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.uc-icon .mdi { font-size: 24px; color: var(--site-illustration-orange, #e8871f); }
.usecase h3 { font-family: var(--font-display, 'Raleway', sans-serif); font-weight: 700; font-size: 18px; color: #0e1552; margin: 16px 0 8px; text-wrap: pretty; }
.usecase p { font-size: 14.5px; line-height: 1.6; color: #3c4257; margin: 0; text-wrap: pretty; }
@media (max-width: 1080px) {
  .usecases { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 24px; margin-top: 52px; }
.testimonial { background: #fff; border-radius: 16px; border: 1px solid rgba(14,21,82,.08); padding: 30px 32px; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.stars { display: flex; align-items: center; gap: 3px; }
.stars .mdi { font-size: 19px; color: var(--site-accent-yellow, #f3bc34); }
.testimonial blockquote { margin: 0; font-size: 15px; line-height: 1.7; color: #2b2f3a; text-wrap: pretty; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.tm-avatar { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 700; font-size: 15px; }
img.tm-avatar { object-fit: cover; }
.tm-meta { display: flex; flex-direction: column; gap: 2px; }
.tm-name { font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 700; font-size: 15px; color: #0e1552; }
.tm-role { font-size: 13.5px; color: rgba(26,29,41,.6); }
.stats-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 64px; margin-top: 56px; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-display, 'Raleway', sans-serif); font-weight: 800; font-size: 46px; color: #0e1552; line-height: 1.1; }
.stat-label { font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 600; font-size: 15px; color: rgba(14,21,82,.6); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 780px; margin: 0 auto; padding: 92px 24px 96px; }
.faq-wrap .section-title { margin-bottom: 40px; }
details.pq-faq { border-bottom: 1px solid rgba(14,21,82,.12); }
details.pq-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; padding: 20px 4px; font-family: var(--font-display, 'Raleway', sans-serif); font-weight: 700; font-size: 18px; color: #0e1552; }
details.pq-faq summary::-webkit-details-marker { display: none; }
details.pq-faq .pq-faq-icon { font-size: 20px; color: var(--site-primary, #005aef); flex: 0 0 auto; transition: transform 240ms cubic-bezier(.55, 0, .1, 1); }
details.pq-faq[open] .pq-faq-icon { transform: rotate(45deg); }
details.pq-faq p { font-size: 15.5px; line-height: 1.65; color: #3c4257; margin: 0; padding: 0 4px 22px; text-wrap: pretty; }
.faq-more { font-size: 15.5px; line-height: 1.65; color: #3c4257; text-align: center; margin: 36px 0 0; text-wrap: pretty; }
.faq-more a { font-weight: 700; }

/* ---------- Mobile apps ---------- */
.apps-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.apps-copy { flex: 1 1 440px; min-width: 320px; }
.apps-copy .section-title { text-align: left; }
.apps-sub { font-family: var(--font-subhead, 'Source Sans Pro', sans-serif); font-size: 19px; line-height: 1.6; color: #3c4257; margin: 18px 0 0; max-width: 520px; text-wrap: pretty; }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.store-badges img { height: 54px; width: auto; display: block; }
.apps-visual { flex: 1 1 300px; min-width: 280px; display: flex; justify-content: center; }
.phone { width: 272px; border-radius: 44px; background: #1a1d29; padding: 10px 12px 16px; box-shadow: 0 12px 40px rgba(14,21,82,.28); }
.phone-notch { display: block; width: 88px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.16); margin: 4px auto 10px; }
.phone-screen { background: #0e1552; border-radius: 32px; padding: 18px 16px 18px; display: flex; flex-direction: column; gap: 13px; }

/* ---------- Final CTA ---------- */
.final-cta { background: #0e1552; }
.final-cta .inner { max-width: 860px; margin: 0 auto; padding: 88px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.final-cta h2 { color: #fff; }
.final-cta .cta-sub { font-family: var(--font-subhead, 'Source Sans Pro', sans-serif); font-size: 20px; line-height: 1.55; color: rgba(255,255,255,.8); margin: 0; max-width: 560px; text-wrap: pretty; }
.final-cta .cta-buttons { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; margin-top: 10px; }
.final-cta .cta-note { font-size: 14px; color: rgba(255,255,255,.6); margin: 4px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid rgba(14,21,82,.08); }
.site-footer .top { padding-top: 44px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; justify-content: space-between; }
.site-footer .logo img { height: 36px; width: auto; display: block; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; }
.footer-nav a { font-size: 14px; color: #3c4257; text-decoration: none; }
.footer-nav a:hover { color: var(--site-primary, #005aef); }
.footer-badges { display: flex; align-items: center; gap: 10px; }
.footer-badges img { height: 30px; width: auto; display: block; }
.footer-social { display: flex; align-items: center; gap: 18px; }
.footer-social .fb { color: rgba(14,21,82,.45); display: flex; }
.footer-social .fb:hover { color: var(--site-primary, #005aef); }
.footer-social .fb .mdi { font-size: 22px; }
.site-footer .bottom { padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer .bottom p { margin: 0; font-size: 13px; color: rgba(26,29,41,.55); }
.site-footer .heart { color: var(--pq-red, #cf0012); }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col-title { margin: 0; font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(14,21,82,.5); }
.footer-col a { font-size: 14px; color: #3c4257; text-decoration: none; }
.footer-col a:hover { color: var(--site-primary, #005aef); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-start; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .pq-fancy--h1 { font-size: 38px; }
  .pq-fancy--h2, .section-title { font-size: 29px; }

  /* Header: logo + hamburger; nav, buttons and language switcher collapse into the menu */
  .site-header .container { height: auto; min-height: 66px; flex-wrap: wrap; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  .site-header .logo { margin-right: auto; }
  .site-header .logo img { height: 62px; }
  .menu-toggle { display: block; margin-left: 0; }
  .header-menu { display: none; }
  .site-header.menu-open .header-menu { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 16px; padding: 4px 0 16px; border-top: 1px solid rgba(14,21,82,.08); }
  .site-header.menu-open .main-nav { margin-left: 0; flex-direction: column; align-items: stretch; gap: 0; }
  .site-header.menu-open .main-nav a { padding: 12px 4px; box-shadow: none; border-bottom: 1px solid rgba(14,21,82,.06); }
  .site-header.menu-open .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--site-accent-yellow, #f3bc34); padding-left: 12px; }
  .site-header.menu-open .header-actions { width: 100%; flex-wrap: wrap; gap: 12px; }

  /* Hero */
  .hero .container { padding-top: 44px; padding-bottom: 52px; gap: 36px; }
  .hero-sub { font-size: 18px; margin-top: 18px; }
  .hero-ctas { margin-top: 26px; }
  .pq-site-btn--cta { font-size: 18px; }
  .btn-outline-primary { font-size: 16px; padding: 8px 22px; }

  /* Sections */
  .section { padding-top: 60px; padding-bottom: 56px; }
  .section-tint { padding-top: 60px; padding-bottom: 56px; }
  .section-sub { font-size: 17px; }
  .steps-callout { margin-top: 32px; padding: 20px 22px; font-size: 15.5px; }

  /* Video mockup */
  .video-section { padding-top: 56px; padding-bottom: 60px; }
  .video-thumb { margin-top: 28px; }
  .video-play { width: 76px; height: 76px; }
  .video-play .mdi { font-size: 32px; }

  /* Alternating rows stack: copy first, visual below */
  .how-row { gap: 30px; margin-top: 48px; }
  .how-row + .how-row { margin-top: 56px; }
  .how-row--reverse { flex-direction: row; }
  .how-copy, .how-visual { flex-basis: 100%; min-width: 0; }
  .how-copy h3 { font-size: 22px; }

  /* Flip cards + use cases: one column */
  .diffs { grid-template-columns: 1fr; }
  .pq-flip { height: 240px; }
  .usecases { grid-template-columns: 1fr; margin-top: 36px; }

  /* Testimonials + stats */
  .testimonials { grid-template-columns: 1fr; margin-top: 36px; }
  .stats-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; margin-top: 40px; }
  .stat-num { font-size: 36px; }

  /* FAQ, apps, final CTA, footer */
  .faq-wrap { padding-top: 60px; padding-bottom: 64px; }
  .apps-inner { gap: 36px; }
  .apps-copy, .apps-visual { flex-basis: 100%; min-width: 0; }
  .final-cta .inner { padding-top: 60px; padding-bottom: 60px; }
  .site-footer .top { padding-top: 32px; }

  .pq-ticker { margin-left: -20px; margin-right: -20px; }
}

@media (max-width: 420px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .pq-fancy--h1 { font-size: 32px; }
  .pq-fancy--h2, .section-title { font-size: 25px; }
  .site-header .logo img { height: 55px; }
  .hero .container { padding-top: 36px; padding-bottom: 44px; }
  .hero-sub { font-size: 16.5px; }
  .hero-ctas { gap: 12px; }
  .pq-site-btn--cta { font-size: 17px; padding: .35em 1.5em; }
  .hero-badges img { height: 36px; }
  .hero-demo { min-width: 0; }
  .demo-card { padding: 16px 16px 18px; }
  .demo-options { grid-template-columns: 1fr; }
  .video-play { width: 64px; height: 64px; }
  .video-play .mdi { font-size: 27px; }
  .video-play-label { font-size: 10.5px; }
  .how-copy, .how-visual { min-width: 0; }
  .world-body { padding: 22px 20px 24px; }
  .pq-flip-face { padding: 20px 22px; }
  .testimonial { padding: 22px 20px; }
  .stats-strip { gap: 22px 12px; }
  .stat-num { font-size: 30px; }
  .apps-copy { min-width: 0; }
  .apps-visual { min-width: 0; }
  .phone { width: 232px; }
  .store-badges img { height: 44px; }
  .social-bar .dot { padding: 0 8px; }
  .pq-ticker { margin-left: -16px; margin-right: -16px; }
}

/* Touch devices: tap to flip (handled in js/menu.js via .is-flipped) */
@media (hover: none) {
  .pq-flip:hover .pq-flip-inner, .pq-flip:focus-visible .pq-flip-inner, .pq-flip:focus-within .pq-flip-inner { transform: none; }
  .pq-flip.is-flipped .pq-flip-inner { transform: rotateY(180deg); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .pq-ticker { -webkit-mask-image: none; mask-image: none; }
  .pq-ticker-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 14px 0; }
  .pq-ticker-half { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .pq-ticker-half + .pq-ticker-half { display: none; }
}

/* ---------- Hero quiz game (play mode — js/hero-quiz.js) ---------- */
.demo-card.is-playing { position: relative; }
.hq-prompt { display: inline-flex; align-items: center; margin: 0 0 12px; font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 700; font-size: 14px; color: var(--site-primary, #005aef); transform-origin: left center; animation: hqPulse 1.4s ease-in-out infinite; }
.hq-prompt[hidden] { display: none; }
.hq-prompt-arrow { display: inline-flex; margin-left: 8px; animation: hqArrowBounce 1s ease-in-out infinite; }
@keyframes hqArrowBounce { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(4px); } }
@keyframes hqPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.hq-question { margin-bottom: 12px; }
.hq-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hq-opt { display: flex; align-items: center; gap: 10px; min-height: 48px; border: 0; border-radius: 10px; padding: 10px 12px; color: #fff; font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 600; font-size: 14px; line-height: 1.3; text-align: left; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, opacity .3s ease; }
.hq-opt--triangle { background: var(--answer-red, #e21b3c); }
.hq-opt--diamond { background: var(--answer-blue, #1368ce); }
.hq-opt--circle { background: var(--answer-gold, #d09f36); }
.hq-opt--square { background: var(--answer-green, #26890c); }
.hq-opt:not([disabled]):not([aria-disabled="true"]):hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(14,21,82,.25); }
.hq-opt:focus-visible { outline: 3px solid #0e1552; outline-offset: 2px; }
.hq-opt-shape { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.hq-opt[aria-disabled="true"], .hq-opt[disabled]:not(.is-correct) { opacity: .38; cursor: default; }
.hq-opt.is-wrong { animation: hqShake .4s ease; }
.hq-opt.is-correct { cursor: default; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--md-success, #7cb342); }
@keyframes hqShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.hq-feedback { margin-top: 14px; }
.hq-msg { margin: 0; min-height: 20px; font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 700; font-size: 14px; color: #0e1552; }
.hq-msg.is-good { color: var(--answer-green, #26890c); }
.hq-cta-line { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: rgba(26,29,41,.75); }
.hq-cta-line a { color: var(--site-primary, #005aef); font-weight: 700; }
.hq-actions { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.hq-actions[hidden] { display: none; }
.hq-next { min-height: 44px; border: 0; border-radius: 999px; padding: 10px 24px; background: var(--site-primary, #005aef); color: #fff; font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s ease, transform .15s ease; }
.hq-next:hover { background: #0047c0; transform: translateY(-1px); }
.hq-next:focus-visible { outline: 3px solid #0e1552; outline-offset: 2px; }
.hq-restart { min-height: 44px; border: 0; padding: 0; background: none; color: rgba(14,21,82,.55); font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif); font-weight: 600; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hq-restart:hover { color: var(--site-primary, #005aef); }
.hq-restart:focus-visible { outline: 3px solid #0e1552; outline-offset: 2px; border-radius: 4px; }
.hq-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; border-radius: 20px; z-index: 2; }
.stats-strip .stat-num { font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .hq-options { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hq-prompt, .hq-opt.is-wrong { animation: none; } .hq-prompt-arrow { display: none; } }
