/* =========================================================
   Quizzez.app — main stylesheet
   Palette taken from the Quizzez logo: rich purple, dark plum,
   lavender, gold and green. Font: Poppins (self-hosted).
   ========================================================= */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }

:root {
  --plum: #240c4e;
  --plum-2: #1b0a3c;
  --ink: #23123f;
  --text: #3f3555;
  --muted: #6a6180;
  --purple: #6d28d9;
  --purple-2: #7c3aed;
  --purple-3: #8b5cf6;
  --violet-d: #4c1d95;
  --lav: #f6f2ff;
  --lav-2: #ece4fe;
  --lav-3: #ddd0fb;
  --line: #e7e0f5;
  --yellow: #ffc21a;
  --yellow-d: #f5a90a;
  --green: #22c55e;
  --green-d: #15803d;
  --red: #dc2626;
  --red-l: #fdecec;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(52, 22, 110, .10);
  --shadow-lg: 0 24px 60px rgba(40, 12, 96, .28);
  --font: "Poppins", Arial, sans-serif;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; overflow-x: hidden; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text);
  background: #fff; overflow-x: hidden; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--violet-d); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font-family: var(--font); font-size: 1rem; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.hl { color: var(--yellow); }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 24px;
  border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: .98rem; line-height: 1.2; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  text-align: center; white-space: nowrap;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .9rem; }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 20px rgba(109, 40, 217, .28); }
.btn-primary:hover { background: var(--violet-d); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--plum); box-shadow: 0 10px 24px rgba(255, 194, 26, .35); }
.btn-yellow:hover { background: #ffcf45; color: var(--plum); }
.btn-outline { background: #fff; color: var(--purple); border-color: var(--lav-3); }
.btn-outline:hover { border-color: var(--purple); color: var(--violet-d); }
.btn-ghost { background: var(--lav); color: var(--violet-d); }
.btn-ghost:hover { background: var(--lav-2); color: var(--violet-d); }
.btn-white-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-white-outline:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-danger { background: var(--red-l); color: var(--red); }
.btn-danger:hover { background: #f9d6d6; color: #b91c1c; }
.link-btn { background: none; border: 0; padding: 0; color: var(--purple); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; }
.link-btn:hover { color: var(--violet-d); }

/* ---------- header ---------- */
#site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
#site-header.is-scrolled { box-shadow: 0 6px 22px rgba(36, 12, 78, .08); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { flex: none; display: block; }
.brand img { width: 150px; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-sub-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 13px; color: var(--ink); font-weight: 500; font-size: .93rem;
  background: none; border: 0; cursor: pointer; border-radius: 10px; position: relative;
}
.nav-list > li > a:hover, .nav-sub-btn:hover { color: var(--purple); background: var(--lav); }
.nav-list > li > a.is-active { color: var(--purple); font-weight: 600; }
.nav-list > li > a.is-active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--purple); }
.nav-chevron { transition: transform .2s ease; }
.nav-sub-btn[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-sub {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: none; z-index: 10;
}
.nav-sub-btn[aria-expanded="true"] + .nav-sub { display: block; }
.nav-sub a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink); font-size: .92rem; }
.nav-sub a:hover, .nav-sub a[aria-current="page"] { background: var(--lav); color: var(--purple); }
.nav-sub-all { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.nav-sub-all a { font-weight: 600; color: var(--purple); }
.nav-cta { box-shadow: none; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.nav-toggle-bar { display: block; height: 2.5px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-open .nav-toggle-bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle-bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 520px at 85% -10%, rgba(167, 139, 250, .45), transparent 60%),
              radial-gradient(800px 500px at -10% 110%, rgba(76, 29, 149, .85), transparent 60%),
              linear-gradient(120deg, #5b21b6 0%, #6d28d9 45%, #7c3aed 100%);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 520px; height: 520px; right: -160px; bottom: -260px; background: rgba(255,255,255,.06); }
.hero::after { width: 260px; height: 260px; left: 38%; top: -150px; background: rgba(255,255,255,.05); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px; align-items: center; padding-top: 52px; padding-bottom: 64px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px; font-size: .84rem; font-weight: 600; margin-bottom: 18px; background: rgba(255,255,255,.08); }
.hero h1 { color: #fff; font-size: clamp(2.05rem, 4.2vw, 3.35rem); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; margin-bottom: 18px; }
.hero h1 .hl { color: var(--yellow); }
.hero-lead { font-size: 1.06rem; color: rgba(255,255,255,.92); max-width: 540px; margin-bottom: 22px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 0 0 30px; font-weight: 600; font-size: .93rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { flex: none; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-ctas .btn { min-height: 54px; padding: 13px 28px; font-size: 1rem; }
.hero-tool-wrap { position: relative; }
.hero-deco { position: absolute; pointer-events: none; z-index: 2; }
.hero-deco-trophy { top: -38px; right: -26px; width: 104px; transform: rotate(10deg); }
.hero-deco-list { bottom: -30px; right: -22px; width: 82px; transform: rotate(8deg); }
.hero-deco-spark { top: -26px; left: -18px; width: 56px; }

/* ---------- quiz maker panel ---------- */
.maker {
  position: relative; z-index: 1; background: #fff; color: var(--text); border-radius: 26px; padding: 26px 26px 22px;
  box-shadow: var(--shadow-lg); border: 6px solid rgba(255,255,255,.28); background-clip: padding-box;
}
.maker-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.maker-head svg { flex: none; }
.maker-title { font-size: 1.35rem; margin: 0; font-weight: 700; }
.maker-sub { font-size: .85rem; color: var(--muted); margin: -8px 0 14px; }
.field { margin-bottom: 14px; }
.field > label, .qm-label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--red); }
.qm-hint, .opt { font-weight: 400; color: var(--muted); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--purple-2); pointer-events: none; }
.input-icon input { padding-left: 44px; }
.maker input[type="text"], .maker textarea, .maker select, .search-input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 11px 14px; font-size: .93rem; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.maker textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
.maker select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23240c4e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.maker input:focus, .maker textarea:focus, .maker select:focus, .search-input:focus { outline: none; border-color: var(--purple-2); box-shadow: 0 0 0 4px rgba(124, 58, 237, .16); }
.maker input[readonly] { background: var(--lav); }
.maker [aria-invalid="true"] { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12) !important; }
.field-row { display: grid; grid-template-columns: 1.15fr .8fr 1.15fr; gap: 12px; }
.field-error { display: flex; align-items: flex-start; gap: 6px; color: var(--red); font-size: .82rem; font-weight: 500; margin: 6px 0 0; }
.field-error svg { flex: none; margin-top: 3px; background: var(--red); color: #fff; border-radius: 50%; width: 16px; height: 16px; padding: 1px; }

.qm-editor { border-top: 1px dashed var(--lav-3); padding-top: 14px; margin-top: 4px; }
.qm-qnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.qm-chip {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 600; font-size: .85rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; position: relative;
}
.qm-chip:hover { border-color: var(--purple-3); }
.qm-chip.is-done { background: #ecfdf3; border-color: #9fe3b9; color: var(--green-d); }
.qm-chip.is-done::after { content: ""; position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
.qm-chip.is-error { background: var(--red-l); border-color: #f3a5a5; color: var(--red); }
.qm-chip.is-current { background: var(--purple); border-color: var(--purple); color: #fff; }
.qm-chip-add { color: var(--purple); border-style: dashed; border-color: var(--purple-3); }
.qm-q { background: var(--lav); border-radius: 16px; padding: 14px 14px 10px; }
.qm-q-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.qm-q-title { font-size: .98rem; margin: 0; }
.qm-icon-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px 8px; border-radius: 8px; font-size: .82rem; font-weight: 600; }
.qm-icon-btn:hover { background: #fff; color: var(--red); }
.qm-opts { margin-bottom: 12px; }
.qm-opt { display: grid; grid-template-columns: 24px 30px 1fr auto auto; align-items: center; gap: 8px; margin-bottom: 7px; }
.qm-radio { width: 20px; height: 20px; accent-color: var(--green); cursor: pointer; margin: 0; }
.qm-letter { width: 30px; height: 30px; border-radius: 8px; background: #fff; color: var(--purple); display: grid; place-items: center; font-weight: 700; font-size: .85rem; border: 1.5px solid var(--line); cursor: pointer; }
.qm-opt.is-correct .qm-letter { background: var(--green); border-color: var(--green); color: #fff; }
.qm-opt.is-correct .qm-otext { border-color: #86d9a4; }
.qm-correct-tag { display: none; font-size: .72rem; font-weight: 700; color: var(--green-d); background: #dcfce7; padding: 3px 8px; border-radius: 999px; }
.qm-opt.is-correct .qm-correct-tag { display: inline-block; }
.qm-opt-remove { padding: 6px; }
.qm-add-opt { margin-top: 2px; }
.qm-q .field { margin-bottom: 10px; }
.qm-q-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.qm-settings { margin: 14px 0 4px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; }
.qm-settings summary { cursor: pointer; padding: 10px 0; font-weight: 600; font-size: .88rem; color: var(--ink); }
.qm-settings[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.check-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: .9rem; }
.check-row input { width: 18px; height: 18px; accent-color: var(--purple); margin: 0; flex: none; }
.qm-settings .check-row:last-child { margin-bottom: 12px; }
.qm-errors { margin: 12px 0 0; background: var(--red-l); border: 1.5px solid #f3b4b4; border-radius: 12px; padding: 12px 14px; color: #8f1d1d; font-size: .88rem; }
.qm-errors-title { font-weight: 700; margin-bottom: 6px; }
.qm-errors ul { margin: 0; padding-left: 18px; }
.qm-errors .link-btn { color: #8f1d1d; font-size: .86rem; text-align: left; font-weight: 500; }
.btn-create { width: 100%; margin-top: 16px; min-height: 56px; font-size: 1.05rem; border-radius: 14px; background: linear-gradient(90deg, #6d28d9, #7c3aed); color: #fff; box-shadow: 0 10px 24px rgba(109, 40, 217, .35); }
.btn-create:hover { color: #fff; background: linear-gradient(90deg, #5b21b6, #6d28d9); }
.qm-foot-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.qm-status { font-size: .82rem; color: var(--muted); margin: 0; min-height: 1.2em; }
.qm-status .link-btn { font-size: .82rem; }
.qm-success { text-align: center; padding: 18px 4px 8px; }
.qm-success-icon svg { margin: 0 auto 10px; }
.qm-success-title { font-size: 1.45rem; margin-bottom: 4px; }
.qm-success-name { font-weight: 600; color: var(--purple); margin-bottom: 6px; overflow-wrap: anywhere; }
.qm-success-note { font-size: .9rem; color: var(--muted); }
.qm-success-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0 10px; }
.qm-success .link-btn { margin: 8px 10px 0; }
.qm-share-host { text-align: left; }

/* share panel */
.share-panel { background: var(--lav); border-radius: 14px; padding: 14px; margin-top: 14px; text-align: left; }
.share-label { font-weight: 600; font-size: .85rem; color: var(--ink); display: block; margin-bottom: 6px; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-input { flex: 1 1 220px; min-width: 0; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: .85rem; background: #fff; color: var(--ink); }
.share-status { font-size: .82rem; color: var(--green-d); font-weight: 600; margin: 8px 0 0; min-height: 1em; }
.share-note { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.form-error { color: var(--red); font-weight: 500; font-size: .9rem; margin: 0; }

/* ---------- section scaffolding (mockup: heading left, content right) ---------- */
.band { padding: 34px 0; border-bottom: 1px solid var(--line); }
.band-lav { background: var(--lav); }
.band-row { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px; align-items: center; }
.band-intro h2 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); font-weight: 700; margin-bottom: 10px; }
.band-intro h2.purple { color: var(--violet-d); }
.band-intro p { font-size: .92rem; color: var(--muted); margin: 0; }
.band-intro .band-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; margin-top: 12px; }
.ic { display: inline-grid; place-items: center; flex: none; }
.ic svg { width: 100%; height: 100%; }

/* What is */
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-left: 1px solid var(--lav-3); padding-left: 36px; }
.about-col { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; }
.about-col .ic { width: 44px; height: 44px; }
.about-col h3 { font-size: 1rem; margin-bottom: 4px; }
.about-col p { font-size: .88rem; margin: 0; color: var(--muted); }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 8px 14px; box-shadow: 0 6px 18px rgba(52, 22, 110, .06); transition: transform .2s ease, box-shadow .2s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 700; font-size: .88rem; display: grid; place-items: center; box-shadow: 0 0 0 4px #fff; }
.step .ic { width: 34px; height: 34px; margin: 0 auto 8px; color: var(--purple); }
.step h3 { font-size: .8rem; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.step h3 .step-label { display: block; font-size: .68rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.step p { font-size: .72rem; color: var(--muted); margin: 0; line-height: 1.45; }
.step:not(:last-child)::after { content: ""; position: absolute; right: -19px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23240c4e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Categories */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; height: 100%; min-height: 112px; padding: 14px 8px; border-radius: 14px; color: var(--ink); border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); border-color: rgba(109,40,217,.25); }
.cat-tile .ic { width: 42px; height: 42px; }
.cat-tile h3 { font-size: .78rem; font-weight: 600; margin: 0; line-height: 1.3; }
.t-violet { background: #f1ebff; } .t-green { background: #e7f8ef; } .t-orange { background: #fff1e3; } .t-blue { background: #eaf0ff; }
.t-sky { background: #e6f5fd; } .t-rose { background: #fdecf3; } .t-pink { background: #fbeafb; } .t-amber { background: #fff6dc; }

/* Features (purple band) */
.features-wrap { padding: 26px 0; }
.features-band { border-radius: 26px; color: #fff; padding: 34px 40px; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 40px; align-items: center;
  background: radial-gradient(600px 300px at 90% 0%, rgba(167,139,250,.35), transparent 60%), linear-gradient(110deg, #4c1d95, #6d28d9 55%, #7c3aed); box-shadow: 0 18px 40px rgba(76, 29, 149, .25); }
.features-band h2 { color: #fff; font-size: clamp(1.45rem, 2.2vw, 1.75rem); margin-bottom: 10px; }
.features-band .band-intro p { color: rgba(255,255,255,.85); }
.feat-grid { list-style: none; margin: 0; padding: 0 0 0 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; border-left: 1px solid rgba(255,255,255,.25); }
.feat { text-align: center; padding: 6px 4px; border-radius: 14px; transition: background-color .2s ease, transform .2s ease; }
.feat:hover { background: rgba(255,255,255,.08); transform: translateY(-3px); }
.feat .ic { width: 38px; height: 38px; margin: 0 auto 8px; }
.feat h3 { color: #fff; font-size: .86rem; font-weight: 600; margin: 0 0 4px; }
.feat p { color: rgba(255,255,255,.78); font-size: .75rem; margin: 0; line-height: 1.45; }

/* Icon columns (why choose, benefits, tips) */
.icon-cols { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.icon-col { text-align: center; padding: 6px 14px; border-left: 1px solid var(--lav-3); transition: transform .2s ease; }
.icon-col:hover { transform: translateY(-3px); }
.icon-col .ic { width: 40px; height: 40px; margin: 0 auto 10px; }
.icon-col h3 { font-size: .86rem; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.icon-col p { font-size: .76rem; color: var(--muted); margin: 0; line-height: 1.45; }

/* Audience cards */
.aud-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.aud { background: #fff; border: 1px solid var(--line); border-radius: 16px; text-align: center; padding: 20px 14px; box-shadow: 0 6px 18px rgba(52, 22, 110, .06); transition: transform .2s ease, box-shadow .2s ease; }
.aud:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.aud .ic { width: 42px; height: 42px; margin: 0 auto 8px; }
.aud h3 { font-size: .92rem; color: var(--violet-d); margin-bottom: 4px; }
.aud p { font-size: .78rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* Popular quizzes */
.pop-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pop-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(52, 22, 110, .07); color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.pop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.pop-card img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; background: var(--lav-2); }
.pop-body { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; margin-top: auto; }
.pop-body > div { flex: 1; min-width: 0; }
.pop-body h3 { font-size: .84rem; font-weight: 600; margin: 0 0 2px; line-height: 1.3; }
.pop-meta { font-size: .72rem; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 4px; }
.pop-play { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--purple); color: #fff; display: grid; place-items: center; transition: transform .2s ease; }
.pop-play svg { width: 14px; height: 14px; margin-left: 2px; }
.pop-card:hover .pop-play { transform: scale(1.1); }

/* FAQ */
.faq-sec { padding: 46px 0 40px; }
.faq-head { text-align: center; margin-bottom: 26px; }
.faq-head h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); display: inline-flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.faq-head h2 .deco { width: 28px; height: 28px; flex: none; }
.faq-head p { color: var(--muted); margin: 0; font-size: .95rem; }
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.faq-group h3 { font-size: 1rem; color: var(--violet-d); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.faq-group h3 .ic { width: 26px; height: 26px; }
.faq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.faq-item { border: 1px solid var(--lav-3); border-radius: 12px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item:hover { border-color: var(--purple-3); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; background: none; border: 0; padding: 11px 16px; cursor: pointer; font-weight: 600; font-size: .86rem; color: var(--ink); border-radius: 12px; }
.faq-q svg { flex: none; transition: transform .2s ease; color: var(--purple); }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-q[aria-expanded="true"] { color: var(--purple); }
.faq-a { padding: 0 16px 14px; font-size: .86rem; color: var(--text); }
.faq-a p { margin: 0; }

/* CTA strip */
.cta-wrap { padding: 8px 0 40px; }
.cta-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; border-radius: 22px; padding: 22px 34px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(100deg, #4c1d95, #6d28d9 60%, #7c3aed); box-shadow: 0 16px 36px rgba(76, 29, 149, .25); }
.cta-strip .ic { width: 64px; height: 64px; }
.cta-strip h2 { color: #fff; font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 0 0 2px; }
.cta-strip h2 .hl { color: var(--yellow); }
.cta-strip p { margin: 0; color: rgba(255,255,255,.88); font-size: .9rem; }

/* ---------- footer ---------- */
#site-footer { background: var(--plum-2); color: rgba(255,255,255,.78); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 36px; }
.footer-brand img { width: 156px; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; margin: 0; }
.footer-title { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
#site-footer a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.footer-bottom p { margin: 0; font-size: .85rem; }
.footer-tag { color: #fff; font-weight: 500; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; padding: 44px 0 46px;
  background: radial-gradient(900px 400px at 90% -20%, rgba(167,139,250,.45), transparent 60%), linear-gradient(120deg, #5b21b6, #6d28d9 55%, #7c3aed); }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 760px; margin: 0; font-size: 1.02rem; }
.breadcrumbs { font-size: .82rem; margin-bottom: 14px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.75); }
.breadcrumbs li + li::before { content: "/"; opacity: .6; }
.breadcrumbs a { color: #fff; font-weight: 500; }
.breadcrumbs a:hover { color: var(--yellow); }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.hero-meta li { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 500; }
.section { padding: 48px 0; }
.section-tight { padding: 32px 0; }
.section-lav { background: var(--lav); }
.section h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.3rem, 2.3vw, 1.6rem); }
.prose h3 { margin-top: 1.3em; font-size: 1.12rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--yellow); background: var(--lav); border-radius: 0 12px 12px 0; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .93rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); text-align: left; padding: 10px 8px; vertical-align: top; }
.prose th { color: var(--ink); background: var(--lav); }
.table-wrap { overflow-x: auto; }
.lead { font-size: 1.08rem; color: var(--ink); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.sidebar { position: sticky; top: 96px; display: grid; gap: 18px; }
.side-box { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; }
.side-box h2 { font-size: 1rem; margin-bottom: 10px; }
.side-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.side-cta { background: linear-gradient(135deg, #5b21b6, #7c3aed); color: #fff; border: 0; }
.side-cta h2 { color: #fff; }
.side-cta p { color: rgba(255,255,255,.88); font-size: .9rem; }

/* quiz player container */
.player-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.player-wrap { margin-top: -30px; position: relative; z-index: 2; }
.qp-kicker { font-size: .78rem; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; }
.qp-title { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 8px; overflow-wrap: anywhere; }
.qp-title:focus { outline: none; }
.qp-desc { color: var(--muted); }
.qp-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 16px; }
.qp-meta li { background: var(--lav); color: var(--violet-d); padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.qp-settings { border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 16px 10px; margin: 0 0 18px; }
.qp-settings legend { font-weight: 600; font-size: .85rem; color: var(--ink); padding: 0 6px; }
.qp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.qp-head { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.qp-head p { margin: 0 0 8px; }
.qp-count { color: var(--purple); }
.qp-progress { height: 10px; border-radius: 99px; background: var(--lav-2); overflow: hidden; margin-bottom: 20px; }
.qp-progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--purple), var(--purple-3)); transition: width .3s ease; }
.qp-question { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.qp-qtext { font-size: clamp(1.08rem, 2vw, 1.3rem); font-weight: 600; color: var(--ink); margin-bottom: 16px; padding: 0; line-height: 1.4; overflow-wrap: anywhere; }
.qp-qtext:focus { outline: none; }
.qp-options { display: grid; gap: 10px; }
.qp-option { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .15s ease, background-color .15s ease; }
.qp-option:hover { border-color: var(--purple-3); background: var(--lav); }
.qp-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qp-option:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.qp-letter { width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--lav); color: var(--purple); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.qp-otext { flex: 1; min-width: 0; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.qp-option.is-selected { border-color: var(--purple); background: var(--lav); }
.qp-option.is-selected .qp-letter { background: var(--purple); color: #fff; }
.qp-option.is-correct { border-color: var(--green); background: #effcf4; }
.qp-option.is-correct .qp-letter { background: var(--green); color: #fff; }
.qp-option.is-wrong { border-color: var(--red); background: var(--red-l); }
.qp-option.is-wrong .qp-letter { background: var(--red); color: #fff; }
.qp-option input:disabled + .qp-letter { cursor: default; }
.qp-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; flex: none; }
.tag-correct { background: #dcfce7; color: var(--green-d); }
.tag-wrong { background: #fee2e2; color: #b91c1c; }
.qp-feedback { border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; font-size: .92rem; }
.qp-feedback:focus { outline: none; box-shadow: 0 0 0 3px var(--yellow); }
.qp-feedback p { margin: 0; }
.qp-feedback-title { display: flex; align-items: flex-start; gap: 8px; font-weight: 700; margin-bottom: 4px !important; }
.qp-feedback-title svg { flex: none; margin-top: 3px; }
.qp-feedback.is-right { background: #effcf4; color: #14532d; }
.qp-feedback.is-wrong { background: var(--red-l); color: #7f1d1d; }
.qp-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qp-confirm { background: #fff8e1; border: 1.5px solid #f6d77a; border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; font-size: .9rem; color: #6b4e00; }
.qp-confirm p { margin: 0 0 8px; }
.qp-confirm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.qp-result { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 16px; }
.qp-ring { position: relative; width: 132px; height: 132px; flex: none; }
.qp-ring svg { display: block; }
.qp-ring-label { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; color: var(--ink); }
.qp-result-text { flex: 1; min-width: 240px; }
.qp-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.qp-stats li { background: var(--lav); padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--violet-d); }
.qp-share-host { width: 100%; }
.qp-review { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }
.qp-review-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.qp-review-head h3 { margin: 0; font-size: 1.15rem; }
.qp-review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qp-review-list.only-wrong .is-right { display: none; }
.qp-review-item { border-radius: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-left-width: 6px; }
.qp-review-item.is-right { border-left-color: var(--green); }
.qp-review-item.is-wrong { border-left-color: var(--red); }
.qp-review-item p { margin: 0 0 4px; font-size: .9rem; overflow-wrap: anywhere; }
.qp-review-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .78rem !important; padding: 2px 10px; border-radius: 999px; }
.is-right .qp-review-status { background: #dcfce7; color: var(--green-d); }
.is-wrong .qp-review-status { background: #fee2e2; color: #b91c1c; }
.qp-review-q { font-weight: 600; color: var(--ink); }
.qp-review-a strong { color: var(--ink); }
.qp-review-exp { color: var(--muted); font-size: .86rem !important; }
.qp-bars { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 10px; }
.qp-bar-label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.qp-bar { display: block; height: 10px; background: var(--lav-2); border-radius: 99px; overflow: hidden; }
.qp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow-d), var(--yellow)); border-radius: 99px; }
.qp-note { font-size: .82rem; color: var(--muted); }

/* quiz library */
.lib-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 18px; }
.search-wrap { position: relative; flex: 1 1 280px; max-width: 420px; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-input { padding-left: 44px !important; border-radius: 999px !important; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 14px; font-weight: 500; font-size: .85rem; cursor: pointer; }
.filter-chip:hover { border-color: var(--purple-3); }
.filter-chip[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.lib-count { font-size: .85rem; color: var(--muted); margin: 0 0 12px; }
.quiz-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.quiz-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 6px 18px rgba(52,22,110,.06); transition: transform .2s ease, box-shadow .2s ease; height: 100%; }
.quiz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quiz-card img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.quiz-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.quiz-card-cat { font-size: .74rem; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.quiz-card h3 { font-size: 1.02rem; margin: 0; }
.quiz-card h3 a { color: var(--ink); }
.quiz-card h3 a:hover { color: var(--purple); }
.quiz-card p { font-size: .86rem; color: var(--muted); margin: 0; }
.quiz-card .btn { margin-top: auto; align-self: flex-start; }
.quiz-card-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .76rem; font-weight: 600; color: var(--violet-d); }
.quiz-card-meta span { background: var(--lav); padding: 2px 10px; border-radius: 999px; }
.empty-state { text-align: center; padding: 34px 20px; border: 2px dashed var(--lav-3); border-radius: 18px; background: #fff; }
.empty-state h3 { margin-bottom: 6px; }
.saved-strip { margin-top: 36px; }
.saved-strip h2 { font-size: 1.3rem; }
.saved-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.saved-card { border: 1.5px dashed var(--lav-3); border-radius: 16px; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.saved-card .btn { margin-top: auto; align-self: flex-start; }
.saved-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--purple); margin: 0; }
.saved-title { font-size: 1rem; margin: 0; overflow-wrap: anywhere; }
.saved-meta { font-size: .8rem; color: var(--muted); margin: 0; }

/* category overview */
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.cat-card { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 20px; border-radius: 18px; color: var(--ink); height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.cat-card .ic { width: 56px; height: 56px; background: #fff; border-radius: 14px; padding: 10px; }
.cat-card h2, .cat-card h3 { font-size: 1.05rem; margin: 0 0 4px; }
.cat-card p { font-size: .86rem; color: var(--muted); margin: 0 0 6px; }
.cat-card .more { font-size: .85rem; font-weight: 600; color: var(--purple); }

/* my quizzes */
.mine-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mine-count { font-weight: 600; color: var(--muted); margin: 0; font-size: .9rem; }
.mine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mine-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-items: center; box-shadow: 0 6px 18px rgba(52,22,110,.05); }
.mine-title { font-size: 1.08rem; margin: 0 0 2px; overflow-wrap: anywhere; }
.mine-meta { font-size: .82rem; color: var(--muted); margin: 0; }
.mine-desc { font-size: .88rem; margin: 6px 0 0; overflow-wrap: anywhere; }
.mine-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.mine-confirm, .mine-share { grid-column: 1 / -1; }
.mine-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--red-l); border-radius: 12px; padding: 10px 14px; font-size: .9rem; color: #7f1d1d; font-weight: 500; }
.mine-share .share-panel { margin-top: 0; }
.notice { border-radius: 12px; padding: 12px 16px; font-size: .92rem; margin: 0 0 16px; background: var(--lav); color: var(--violet-d); font-weight: 500; }
.notice.is-error { background: var(--red-l); color: #8f1d1d; }
.notice.is-ok { background: #ecfdf3; color: #14532d; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.play-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

/* blog */
.blog-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 6px 18px rgba(52,22,110,.06); transition: transform .2s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--lav-2); }
.blog-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-tag { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--purple); margin: 0; }
.blog-card h2, .blog-card h3 { font-size: 1.06rem; margin: 0; line-height: 1.35; }
.blog-card h2 a, .blog-card h3 a { color: var(--ink); }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--purple); }
.blog-card p { font-size: .88rem; color: var(--muted); margin: 0; }
.blog-card .read { margin-top: auto; font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: 4px; }
.article-figure { margin: 0 0 26px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.article-figure img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.toc ol { padding-left: 1.2em; margin: 0; font-size: .9rem; display: grid; gap: 6px; }
.qa-list { counter-reset: qa; list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.qa-list li { counter-increment: qa; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 12px 56px; position: relative; margin: 0 !important; }
.qa-list li::before { content: counter(qa); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 9px; background: var(--lav); color: var(--purple); font-weight: 700; display: grid; place-items: center; font-size: .82rem; }
.qa-q { display: block; font-weight: 600; color: var(--ink); }
.qa-a { display: block; color: var(--text); font-size: .93rem; }
.qa-a b { color: var(--green-d); }
.related { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 26px; }
.related h2 { font-size: 1.25rem; }
.callout-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--lav); border-radius: 18px; padding: 20px 22px; margin: 1.6em 0; }
.callout-cta p { margin: 0; font-weight: 600; color: var(--ink); }
.contact-box { display: inline-flex; align-items: center; gap: 12px; background: var(--lav); border-radius: 16px; padding: 16px 20px; font-weight: 600; color: var(--ink); margin: 6px 0 20px; }
.contact-box .ic { width: 40px; height: 40px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pc-list { list-style: none; padding: 0 !important; }
.pc-list li { display: flex; gap: 10px; align-items: flex-start; }
.pc-list svg { flex: none; margin-top: 3px; }

/* to-top */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--purple); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px rgba(109,40,217,.35); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 90; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--violet-d); }

/* reveal */
.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.will-reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .steps { grid-template-columns: repeat(4, 1fr); row-gap: 30px; }
  .step:nth-child(4)::after { display: none; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .feat-grid { grid-template-columns: repeat(4, 1fr); }
  .icon-cols { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .aud-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-list > li > a, .nav-sub-btn { padding: 10px 9px; }
}
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
  .hero-copy { max-width: 720px; }
  .hero-tool-wrap { max-width: 640px; width: 100%; }
  .band-row, .features-band { grid-template-columns: 1fr; gap: 22px; }
  .about-cols, .feat-grid { border-left: 0; padding-left: 0; }
  .two-col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  /* mobile navigation */
  .nav-toggle { display: flex; }
  .primary-nav { position: fixed; left: 0; right: 0; top: 76px; bottom: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 24px 30px; overflow-y: auto; opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; margin: 0; border-top: 1px solid var(--line); }
  .menu-open .primary-nav { opacity: 1; }
  .menu-open .primary-nav { transform: none; visibility: visible; }
  .menu-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li > a, .nav-sub-btn { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 1rem; }
  .nav-list > li > a.is-active::after { display: none; }
  .nav-sub { position: static; box-shadow: none; border: 0; background: var(--lav); margin: 2px 0 6px; }
  .nav-cta { width: 100%; min-height: 50px; }
}
@media (max-width: 860px) {
  .about-cols { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none !important; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .icon-cols { grid-template-columns: repeat(2, 1fr); }
  .icon-col { border-left: 0; border-top: 1px solid var(--lav-3); padding-top: 16px; }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .pop-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-cols { grid-template-columns: 1fr; }
  .cta-strip { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .mine-item { grid-template-columns: 1fr; }
  .mine-actions { justify-content: flex-start; }
  .pros-cons { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .header-inner { min-height: 66px; }
  .brand img { width: 128px; }
  .primary-nav { top: 66px; }
  .hero-inner { padding-top: 28px; padding-bottom: 44px; gap: 28px; }
  .hero-lead { font-size: .98rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .maker { padding: 18px 14px 16px; border-width: 4px; border-radius: 20px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .field:last-child { grid-column: 1 / -1; }
  .qm-opt { grid-template-columns: 22px 28px 1fr auto; }
  .qm-correct-tag { display: none !important; }
  .hero-deco-trophy { width: 70px; top: -26px; right: -6px; }
  .hero-deco-list, .hero-deco-spark { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr 1fr; gap: 16px 10px; }
  .features-band { padding: 26px 18px; border-radius: 20px; }
  .icon-cols { grid-template-columns: 1fr 1fr; }
  .aud-grid, .pop-grid, .blog-grid { grid-template-columns: 1fr; }
  .steps { gap: 26px 14px; }
  .player-card { padding: 18px 14px; border-radius: 18px; }
  .qp-option { padding: 11px 10px; gap: 10px; flex-wrap: wrap; }
  .qp-result { gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .page-hero { padding: 32px 0 40px; }
  .qp-nav .btn, .qp-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 360px) {
  .field-row { grid-template-columns: 1fr; }
  .icon-cols, .feat-grid, .steps { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .will-reveal { opacity: 1; transform: none; }
}
@media print {
  #site-header, #site-footer, .to-top, .cta-wrap { display: none; }
}
.visually-hidden-h { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
#site-header { min-height: 77px; }
@media (max-width: 600px) { #site-header { min-height: 67px; } }
/* compact hero state of the maker (questions editor expands in place) */
.maker .input-icon input[type="text"] { padding-left: 44px; }
.qm-next-hint { display: none; font-size: .82rem; color: var(--muted); margin: 4px 0 0; }
.maker.is-compact .qm-next-hint { display: block; }
.maker.is-compact .qm-editor, .maker.is-compact .qm-settings, .maker.is-compact [data-role=reset] { display: none; }
.maker.is-compact .field-row { margin-bottom: 0; }

/* ---------- Hero: when the question editor is open, keep the left copy pinned beside the panel ---------- */
@media (min-width: 1081px) {
  .maker-open .hero-inner { align-items: start; }
  .maker-open .hero-copy { position: sticky; top: 112px; padding-top: 24px; }
}
.hero-copy, .maker { transition: padding .25s ease; }

/* overflow: clip keeps decorations contained without breaking position: sticky */
html, body { overflow-x: clip; }
.hero { overflow: clip; }
.maker-open .hero-deco-list { display: none; }

/* ---------- How It Works: same heading-left layout as the other sections ---------- */
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.how-step { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 18px 16px; box-shadow: 0 6px 18px rgba(52, 22, 110, .05); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.how-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--lav-3); }
.how-step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.how-num { width: 34px; height: 34px; border-radius: 10px; background: var(--purple); color: #fff; font-weight: 700; font-size: .9rem;
  display: grid; place-items: center; box-shadow: 0 6px 14px rgba(109, 40, 217, .28); }
.how-step .ic { width: 36px; height: 36px; padding: 6px; border-radius: 10px; background: var(--lav); }
.how-step h3 { font-size: .95rem; font-weight: 600; line-height: 1.35; margin: 0 0 6px; }
.how-step p { font-size: .8rem; line-height: 1.5; color: var(--muted); margin: 0; }
.how-cta { background: linear-gradient(135deg, #5b21b6, #7c3aed); border: 0; color: #fff; justify-content: space-between; }
.how-cta:hover { border-color: transparent; }
.how-cta .how-cta-title { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.how-cta p { color: rgba(255,255,255,.85); }
.how-cta .btn { margin-top: 14px; align-self: flex-start; min-height: 42px; padding: 9px 18px; font-size: .88rem; }
@media (max-width: 1200px) { .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .how-cta { grid-column: span 2; } }
@media (max-width: 860px) { .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .how-cta { grid-column: auto; } }
@media (max-width: 480px) { .how-grid { grid-template-columns: 1fr; } }
.how-cta .btn { width: 100%; align-self: stretch; white-space: normal; padding: 9px 12px; }
.how-cta .btn { font-size: .84rem; gap: 6px; padding: 9px 10px; white-space: nowrap; }
.how-cta .btn svg { width: 14px; height: 14px; }
