/* quizko.eu marketing site (spec 2026-09-28, kap. 6; playful look: spec 2026-10-08, kap. 5) – a
   light product page in the brand violet (docs/design/brand) with the A–D answer colours as fills
   and accents. No inline styles anywhere: the CSP allows style-src 'self'. */
:root {
  --bg: #F7F6FC;
  --surface: #FFFFFF;
  --band: #EFECFA;
  --line: #E2DEF1;
  --ink: #1E1A2F;
  --muted: #5F5A78;
  --brand: #6C4BD1;
  --accent: #5B3DB8;
  --accent-dark: #452B96;
  --tint: #EDE8FB;
  --tv: #14111F;
  --a: #C2410C;
  --b: #1864AB;
  --c: #087F5B;
  --d: #6741D9;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--b); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 800; line-height: 1.06; }
h2 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.5px; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.wrap { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: #FFFFFF; padding: 12px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* header */
.site-header { padding: 20px 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-logo { display: block; height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav .lang { font-weight: 700; }
.nav .login { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px; background: var(--ink); color: #FFFFFF; }
.nav .login:hover { background: #000000; color: #FFFFFF; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 8px 18px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 240px; display: flex; flex-direction: column; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(30, 26, 47, 0.14); }
.menu-panel a { min-height: 44px; display: flex; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu-panel a:hover { background: var(--tint); }

/* buttons and badges */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px; border-radius: 14px; font-weight: 700; font-size: 18px; text-decoration: none; }
.btn-primary { background: var(--accent); color: #FFFFFF; box-shadow: 0 10px 24px rgba(91, 61, 184, 0.3); }
.btn-primary:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn-outline { background: var(--surface); color: var(--ink); border: 2px solid var(--ink); font-weight: 500; }
.btn-outline:hover { background: var(--tint); color: var(--ink); }
.btn-white { background: #FFFFFF; color: var(--accent-dark); }
.btn-white:hover { background: var(--tint); color: var(--accent-dark); }
.badge { display: inline-flex; align-items: center; gap: 8px; align-self: center; padding: 8px 16px; border-radius: 999px; background: var(--tint); color: var(--accent-dark); font-size: 15px; font-weight: 700; }
.badge-mark { flex-shrink: 0; width: 12px; height: 12px; border-radius: 3px; }

/* hero */
.hero { padding: 40px 0 0; text-align: center; overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero h1 { max-width: 980px; font-size: clamp(40px, 6vw, 72px); letter-spacing: -1.5px; }
.hero h1 .mark { display: inline-block; padding: 0 0.25em; border-radius: 0.18em; background: var(--c); color: #FFFFFF; white-space: nowrap; }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.hero-visual { position: relative; width: 100%; max-width: 1120px; margin-top: 24px; padding: 0 64px; }
.tile { position: absolute; z-index: 0; display: flex; align-items: center; justify-content: center; border-radius: 18%; color: #FFFFFF; font-family: var(--display); font-weight: 800; box-shadow: 0 12px 28px rgba(30, 26, 47, 0.18); }
.tile-a { left: 0; top: 60px; width: 84px; height: 84px; font-size: 40px; background: var(--a); }
.tile-b { left: 24px; top: 250px; width: 64px; height: 64px; font-size: 30px; background: var(--b); }
.tile-c { right: 0; top: 24px; width: 72px; height: 72px; font-size: 34px; background: var(--c); }
.tile-d { right: 16px; top: 320px; width: 60px; height: 60px; font-size: 28px; background: var(--d); }
.device { position: relative; z-index: 1; margin: 0; overflow: hidden; background: var(--tv); }
.tv { width: 82%; border: 12px solid var(--ink); border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: 0 24px 60px rgba(30, 26, 47, 0.18); }
.phone { position: absolute; right: 64px; bottom: 0; z-index: 2; width: 21%; border: 8px solid var(--ink); border-radius: 30px; box-shadow: 0 24px 48px rgba(30, 26, 47, 0.22); }
.phone img { border-radius: 22px; }

/* sections */
.section { padding: 88px 0; }
.section-band { background: var(--band); }
.section-head { margin-bottom: 40px; }
.section-head .lead { margin-top: 12px; font-size: 19px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.card p { color: var(--muted); }
.bg-a { background: var(--a); }
.bg-b { background: var(--b); }
.bg-c { background: var(--c); }
.bg-d { background: var(--d); }
/* how it works: filled cards, white text (5.0–6.1:1 on A/B/C), a shadow in the card's colour */
.step { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 20px; color: #FFFFFF; }
.step h3 { font-size: 24px; }
.step-num { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; }
.step.bg-a { box-shadow: 0 14px 32px rgba(194, 65, 12, 0.25); }
.step.bg-b { box-shadow: 0 14px 32px rgba(24, 100, 171, 0.25); }
.step.bg-c { box-shadow: 0 14px 32px rgba(8, 127, 91, 0.25); }
/* features: the card's answer letter on a square of its colour */
.letter { align-self: flex-start; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 12px; color: #FFFFFF; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; }
/* audience: an 8px top edge in A/B/C */
.bt-a { border-top: 8px solid var(--a); }
.bt-b { border-top: 8px solid var(--b); }
.bt-c { border-top: 8px solid var(--c); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.shot { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.shot img { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 12px 32px rgba(30, 26, 47, 0.10); }
.shot-phone img { width: auto; max-height: 560px; margin: 0 auto; border-radius: 24px; }
.shot figcaption { color: var(--muted); font-size: 15px; font-weight: 500; text-align: center; }
.pricing { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.pricing-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pricing .badge { align-self: flex-start; }
.pricing p { max-width: 720px; color: var(--muted); font-size: 19px; }
.pricing .btn { flex-shrink: 0; }
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq details { padding: 0 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
/* +/− on a 32px square, the answer colours A–D in turn */
.faq summary::after { content: '+'; flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--a); color: #FFFFFF; font-size: 22px; font-weight: 700; line-height: 1; }
.faq details:nth-child(4n+2) summary::after { background: var(--b); }
.faq details:nth-child(4n+3) summary::after { background: var(--c); }
.faq details:nth-child(4n+4) summary::after { background: var(--d); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 20px; color: var(--muted); }
/* the closing call to action: a violet block, four faint answer tiles in its corners */
.final-band { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 72px 32px; border-radius: 28px; background: var(--accent); color: #FFFFFF; text-align: center; }
.final-band h2, .final-band .lead, .final-band .btn { position: relative; z-index: 1; }
.final-band .lead { color: #FFFFFF; }
.final-band :focus-visible { outline-color: #FFFFFF; }
.deco { position: absolute; z-index: 0; border-radius: 18%; }
.deco-1 { left: -40px; top: -76px; width: 140px; height: 140px; opacity: 0.5; }
.deco-2 { left: 72px; bottom: -48px; width: 100px; height: 100px; opacity: 0.45; }
.deco-3 { right: 96px; top: -52px; width: 110px; height: 110px; opacity: 0.55; }
.deco-4 { right: -44px; bottom: -56px; width: 150px; height: 150px; background: #9B7BFF; opacity: 0.5; }

/* footer */
.site-footer { padding: 56px 0 32px; background: var(--ink); color: #E6E2F5; }
.site-footer a { color: #C9BEF5; }
.site-footer .brand-logo { height: 45px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col p { color: #B9B3D6; }
.footer-heading { color: #FFFFFF; font-weight: 700; }
.copyright { margin-top: 40px; color: #8F89B0; font-size: 14px; }

/* privacy and 404 */
.legal { padding: 48px 0 88px; }
.legal .wrap { max-width: 820px; display: flex; flex-direction: column; gap: 14px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); }
.legal h2 { margin-top: 28px; font-size: 26px; }
.legal .updated { color: var(--muted); }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.not-found { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 88px 24px; text-align: center; }
.not-found .big { color: var(--brand); font-family: var(--display); font-weight: 800; font-size: 120px; line-height: 1; }
.not-found h1 { font-size: clamp(32px, 5vw, 48px); }

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

@media (max-width: 1023px) {
  .nav { display: none; }
  .menu { display: block; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .grid-3, .gallery, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { padding: 0; }
  .tile { display: none; }
  .tv { width: 86%; border-width: 8px; border-radius: 14px 14px 0 0; }
  .phone { right: 0; width: 30%; border-width: 5px; border-radius: 20px; }
  .phone img { border-radius: 15px; }
  .cta-row { width: 100%; flex-direction: column; }
  .btn { width: 100%; }
  .pricing { flex-direction: column; align-items: stretch; padding: 28px; }
  .pricing .btn { width: 100%; }
  .final-band { padding: 56px 20px; }
  .deco-1 { left: -34px; top: -38px; width: 84px; height: 84px; }
  .deco-2 { left: 24px; bottom: -40px; width: 60px; height: 60px; }
  .deco-3 { right: 40px; top: -44px; width: 66px; height: 66px; }
  .deco-4 { right: -36px; bottom: -44px; width: 90px; height: 90px; }
}
