/* Squizzy front page.
   A quiz show: plum ink on warm paper, with the coral, amber and green of the logo and a little
   confetti purple. The logo's blue is left out on purpose. Headings are Fredoka (round, like the
   logo's question mark); reading text is Nunito. Pictures sit in rounded cards with a hard,
   coloured shadow. The motion: the ticker of question types, the floating confetti in the hero,
   the stage bulbs, and a confetti burst when a visitor passes the demo quiz. All of it stops for
   people who ask their device for reduced motion. */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka.woff2") format("woff2-variations"), url("fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.woff2") format("woff2-variations"), url("fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-italic.woff2") format("woff2-variations"), url("fonts/nunito-italic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  --plum: #2a1830;
  --plum-2: #3d2645;
  --ink: #2a1830;
  --ink-2: #5d4a5f;
  --paper: #fff6ea;
  --paper-2: #fdebd6;
  --white: #ffffff;
  --coral: #ff5f45;
  --coral-ink: #c2381f;     /* coral dark enough for text and white-text buttons */
  --amber: #ffb21e;
  --amber-soft: #fff0cc;
  --green: #3cc47c;
  --green-ink: #17784a;
  --green-soft: #dcf5e7;
  --purple: #8a4fd1;
  --line: #ecd9c2;
  --radius: 18px;
  --wrap: 1180px;
  --display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 18px; line-height: 1.6; font-weight: 450;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--plum); text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--plum); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem); margin-bottom: .45em; }
h3 { font-size: 1.2rem; }
strong { font-weight: 800; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .62em 1.25em; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1.2; text-decoration: none;
  background: var(--coral-ink); color: #fff; border: 2px solid var(--coral-ink);
  box-shadow: 0 4px 0 var(--plum); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--plum); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--plum); }
.btn-big { font-size: 1.2rem; padding: .7em 1.5em; }
.btn-quiet { background: var(--white); color: var(--plum); border-color: var(--plum); }
.btn-open { font-size: .95rem; padding: .5em 1.05em; box-shadow: 0 3px 0 var(--plum); }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { width: min(100% - 32px, var(--wrap)); margin-inline: auto; display: flex; align-items: center; gap: 24px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--plum); font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.brand .mark { border-radius: 9px; transition: transform .25s ease; }
.brand:hover .mark { transform: rotate(-10deg) scale(1.06); }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--ink-2); }
.nav a:hover { color: var(--plum); text-decoration: underline; text-decoration-color: var(--coral); }
@media (max-width: 940px) { .nav { display: none; } .btn-open { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: static; padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start;
  width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.hero-band { position: relative; overflow: clip; isolation: isolate; }
.hero-art { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.hero-art .c-coral { fill: color-mix(in srgb, var(--coral) 18%, transparent); }
.hero-art .c-green { fill: color-mix(in srgb, var(--green) 20%, transparent); }
.hero-art .c-amber { fill: var(--amber); }
.hero-art .confetti path { fill: none; stroke-width: 9; stroke-linecap: round; }
.s-coral { stroke: var(--coral); } .s-green { stroke: var(--green); } .s-purple { stroke: var(--purple); } .s-amber { stroke: var(--amber); }
.f-coral { fill: var(--coral); } .f-green { fill: var(--green); } .f-purple { fill: var(--purple); }
.hero-art .confetti > * { transform-box: fill-box; transform-origin: center; animation: drift 7s ease-in-out infinite alternate; }
.hero-art .confetti > *:nth-child(2n) { animation-duration: 9s; animation-delay: -3s; }
.hero-art .confetti > *:nth-child(3n) { animation-duration: 11s; animation-delay: -6s; }
@keyframes drift { from { transform: translateY(-6px) rotate(-12deg); } to { transform: translateY(8px) rotate(14deg); } }

.kicker { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--coral-ink); margin-bottom: .6em; }
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 4.6rem); font-weight: 700; line-height: 1.02; margin-bottom: .4em; }
.squiz { position: relative; display: inline-block; color: var(--coral-ink); }
.squiz svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.squiz path { fill: none; stroke: var(--amber); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: scribble 1s .4s cubic-bezier(.6,.1,.3,1) forwards; }
@keyframes scribble { to { stroke-dashoffset: 0; } }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 16px; }
.hero-note { font-size: .9rem; color: var(--ink-2); margin: 0; }

/* the quiz show stage, with marquee bulbs around the frame */
.stage-wrap { position: relative; }
.stage { margin: 0; position: relative; }
.stage-sign { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; margin: 0 0 -18px 26px;
  padding: 6px 16px; border-radius: 999px; background: var(--plum); color: #fff; font-family: var(--display); font-weight: 600; font-size: .95rem;
  box-shadow: 0 3px 0 var(--coral-ink); transform: rotate(-2deg); }
.stage-sign span { color: var(--amber); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.stage-frame { position: relative; padding: 22px; border-radius: 28px; background: var(--plum);
  box-shadow: 0 10px 0 color-mix(in srgb, var(--plum) 35%, transparent), 0 24px 50px rgba(42, 24, 48, .25); }
.stage-frame::before { content: ""; position: absolute; inset: 7px; border-radius: 22px; pointer-events: none;
  background:
    radial-gradient(circle, var(--amber) 0 3.2px, transparent 4px) 0 0 / 22px 22px repeat-x,
    radial-gradient(circle, var(--amber) 0 3.2px, transparent 4px) 0 100% / 22px 22px repeat-x,
    radial-gradient(circle, var(--amber) 0 3.2px, transparent 4px) 0 0 / 22px 22px repeat-y,
    radial-gradient(circle, var(--amber) 0 3.2px, transparent 4px) 100% 0 / 22px 22px repeat-y;
  -webkit-mask: linear-gradient(#000 0 0); animation: bulbs 1.6s steps(2) infinite; }
@keyframes bulbs { 50% { filter: brightness(.65) saturate(.7); } }
.stage-frame iframe { display: block; width: 100%; height: 330px; border: 0; border-radius: 14px; background: var(--white); transition: height .25s ease; }
.stage figcaption { font-size: .9rem; color: var(--ink-2); margin-top: 22px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .stage-frame { padding: 16px; border-radius: 22px; }
  .stage-frame::before { inset: 4px; border-radius: 18px; }
}
@media (max-width: 520px) {
  .stage-frame { padding: 10px; border-radius: 18px; }
  .stage-frame::before { display: none; }
  .stage-sign { margin-left: 12px; }
}

/* ---------- ticker of question types ---------- */
.ticker-clip { overflow: clip; padding: 18px 0; margin-top: -10px; }
.ticker { overflow: hidden; background: var(--plum); color: #fff; border-block: 4px solid var(--amber); transform: rotate(-1.2deg); margin: 0 -30px; }
.ticker-in { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker span { font-family: var(--display); font-weight: 600; font-size: 1.15rem; padding: 12px 0; white-space: nowrap; }
.ticker span::after { content: "?"; display: inline-block; margin: 0 22px; color: var(--plum); background: var(--amber); width: 1.4em; height: 1.4em; line-height: 1.4em; text-align: center; border-radius: 50%; font-size: .85em; }
.ticker span:nth-child(3n+2)::after { background: var(--coral); }
.ticker span:nth-child(3n)::after { background: var(--green); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.intro { font-size: 1.12rem; color: var(--ink-2); max-width: 44em; margin-bottom: 1.6em; }
.tint-amber { background: var(--amber-soft); }
.tint-green { background: var(--green-soft); }
.h-small { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; }
.facts div { background: var(--white); border: 2px solid var(--plum); border-radius: var(--radius); padding: 20px 22px; box-shadow: 5px 5px 0 var(--c, var(--coral)); }
.facts div:nth-child(3n+2) { --c: var(--amber); }
.facts div:nth-child(3n) { --c: var(--green); }
.facts dt { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin-bottom: .25em; }
.facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }

/* how it fits together */
.flow { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.flow > li { position: relative; background: var(--white); border-radius: var(--radius); padding: 18px 18px 20px; border-top: 6px solid var(--c); box-shadow: 0 2px 0 var(--line); display: flex; flex-direction: column; gap: 10px; }
.flow .f-q { --c: var(--coral); } .flow .f-b { --c: var(--amber); } .flow .f-s { --c: var(--green); } .flow .f-o { --c: var(--purple); }
.flow > li:not(:last-child)::after { content: ""; position: absolute; right: -25px; top: 50%; width: 14px; height: 14px; border-right: 4px solid var(--plum); border-bottom: 4px solid var(--plum); transform: translateY(-50%) rotate(-45deg); }
.flow h3 { display: flex; align-items: center; gap: 10px; }
.flow p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: var(--plum); font-size: .95rem; font-weight: 700; flex: none; }
.f-q .num, .f-o .num { color: #fff; }
.f-q .num { background: var(--coral-ink); }
.chips { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .82rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.mini { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: var(--paper); font-size: .84rem; margin-top: auto; }
.mini b { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: var(--ink-2); }
.mini span { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; line-height: 1.35; }
.mini strong { display: block; font-weight: 800; }
.mini i { font-style: normal; font-size: .74rem; font-weight: 700; padding: 0 6px; border-radius: 4px; background: var(--amber-soft); color: #7a4b00; }
.note { margin: 26px 0 0; font-weight: 700; color: var(--ink-2); max-width: 46em; }
@media (max-width: 980px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .flow > li::after { display: none; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; gap: 30px; }
  .flow > li:not(:last-child)::after { display: block; right: auto; left: 50%; top: auto; bottom: -24px; transform: translateX(-50%) rotate(45deg); }
}

/* wide screenshots with copy above */
.wide-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-bottom: 36px; }
.wide-copy p { color: var(--ink-2); font-size: 1.08rem; }
@media (max-width: 860px) { .wide-copy { grid-template-columns: 1fr; gap: 0; } }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 36px; color: var(--ink-2); }
.ticks li strong { color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%; background: var(--green); }
.ticks li::after { content: ""; position: absolute; left: 8px; top: calc(.2em + 5px); width: 6px; height: 11px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* screenshot frames */
.shot { margin: 0; }
.shot img { border-radius: 14px; border: 2px solid var(--plum); background: var(--white); }
.shot-window img { box-shadow: 10px 10px 0 var(--coral); }
.shot-card img { box-shadow: 8px 8px 0 var(--amber); }
.shot-paper img { box-shadow: 8px 8px 0 var(--green); transform: rotate(1.5deg); }
.shot-wide { margin-top: 36px; }
.shot-phone { max-width: 300px; justify-self: center; }
.shot-phone img { border: 10px solid var(--plum); border-radius: 36px; box-shadow: 8px 8px 0 var(--coral); }

/* split rows */
.split-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.flip .split-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.flip .split-in > .copy { order: 2; }
.copy p { color: var(--ink-2); }
.copy p strong { color: var(--ink); }
.private .split-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: start; }
@media (max-width: 900px) {
  .split-in, .flip .split-in, .private .split-in { grid-template-columns: 1fr; }
  .flip .split-in > .copy { order: 0; }
}

/* nine question types, scattered like cards */
.types-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 30px; }
.types-head p { color: var(--ink-2); margin: 0 0 .5em; max-width: 40em; }
.count { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; margin-right: .1em; border-radius: 50%; background: var(--coral-ink); color: #fff; transform: rotate(-8deg); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; align-content: start;
  background: var(--white); border: 2px solid var(--plum); border-radius: var(--radius); padding: 18px; box-shadow: 4px 4px 0 var(--plum);
  transform: rotate(var(--r, -.6deg)); transition: transform .2s ease, box-shadow .2s ease; }
.cards li:nth-child(2n) { --r: .7deg; }
.cards li:nth-child(3n) { --r: -.3deg; }
.cards li:hover { transform: rotate(0) translateY(-4px); box-shadow: 6px 8px 0 var(--plum); }
.cards strong { font-family: var(--display); font-weight: 600; font-size: 1.15rem; align-self: end; }
.cards li > span:not(.ico) { grid-column: 2; color: var(--ink-2); font-size: .95rem; }
.ico { grid-row: span 2; width: 56px; height: 56px; border-radius: 14px; background: var(--paper); display: grid; place-items: center; }
.ico svg { width: 40px; height: 40px; fill: none; stroke: var(--plum); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ico svg .on { fill: var(--amber); }
.cards li:nth-child(3n+1) .ico svg .on { fill: var(--coral); }
.cards li:nth-child(3n) .ico svg .on { fill: var(--green); }
.ico svg .hole { stroke-dasharray: 3 3; fill: var(--paper-2); }
.cards li.star { background: var(--plum); color: #fff; }
.cards li.star > span:not(.ico) { color: #f3dff0; }
.cards li.star::after { content: "New"; position: absolute; top: -12px; right: 14px; background: var(--amber); color: var(--plum); font-family: var(--display); font-weight: 700; font-size: .8rem; padding: 2px 10px; border-radius: 999px; transform: rotate(4deg); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .types-head { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* four ways to use it */
.way-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 18px; }
.way-cards li { background: var(--white); border-radius: var(--radius); padding: 22px; border: 2px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.way-cards li p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.way-cards li a { margin-top: auto; font-weight: 800; font-size: .95rem; }
.way-cards .tag { align-self: start; font-family: var(--display); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--coral-ink); }
.way-cards h3 { font-size: 1.35rem; }
.way-cards .lead { background: var(--plum); border-color: var(--plum); color: #fff; box-shadow: 8px 8px 0 var(--coral); }
.way-cards .lead p { color: #f3dff0; }
.way-cards .lead strong { color: var(--amber); }
.way-cards .lead .tag { background: var(--amber); color: var(--plum); }
@media (max-width: 1000px) { .way-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .way-cards { grid-template-columns: 1fr; } }

/* formats in and out */
.interop-head { max-width: 46em; }
.interop-head p { color: var(--ink-2); font-size: 1.08rem; }
.io { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 18px; }
.io-col { background: var(--white); border-radius: var(--radius); padding: 22px 24px; border: 2px solid var(--plum); box-shadow: 6px 6px 0 var(--green-ink); }
.io-col h3 { margin-bottom: 10px; font-size: 1.35rem; }
.io-col ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--ink-2); }
.io-col ul strong { color: var(--ink); }
.io-hub { position: relative; display: grid; place-items: center; width: 150px; height: 150px; }
.io-hub img { border-radius: 22px; box-shadow: 0 6px 0 var(--plum); animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.io-hub .arrow { position: absolute; top: 50%; width: 30px; height: 4px; background: var(--plum); border-radius: 2px; }
.io-hub .arrow::after { content: ""; position: absolute; right: -2px; top: -6px; width: 12px; height: 12px; border-right: 4px solid var(--plum); border-bottom: 4px solid var(--plum); transform: rotate(-45deg); }
.io-hub .in { left: -6px; } .io-hub .out { right: -6px; }
@media (max-width: 860px) {
  .io { grid-template-columns: 1fr; }
  .io-hub { width: 100%; height: 120px; }
  .io-hub .arrow { left: 50%; width: 4px; height: 22px; top: auto; }
  .io-hub .arrow::after { right: auto; left: -6px; top: auto; bottom: -2px; transform: rotate(45deg); }
  .io-hub .in { top: -4px; transform: translateX(-50%); } .io-hub .out { bottom: -4px; transform: translateX(-50%); }
}

/* family of tools */
.family { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.family a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 14px; padding: 16px; border-radius: var(--radius); background: var(--white); border: 2px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; transition: border-color .15s ease, transform .15s ease; }
.family a:hover { border-color: var(--plum); transform: translateY(-2px); }
.family .logo { grid-row: span 2; width: 44px; height: 44px; }
.family .logo rect { fill: var(--plum); }
.family .logo path, .family .logo circle { fill: none; stroke: var(--amber); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.family .name { font-family: var(--display); font-weight: 600; font-size: 1.12rem; }
.family .desc { color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
@media (max-width: 900px) { .family { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .family { grid-template-columns: 1fr; } }

/* downloads */
.download { background: var(--plum); color: #fff; }
.download h2 { color: #fff; }
.download-head { max-width: 46em; margin-bottom: 30px; }
.download-head p { color: #f3dff0; font-size: 1.08rem; }
.downloads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.downloads li { background: var(--plum-2); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; border: 2px solid color-mix(in srgb, #fff 12%, transparent); }
.downloads h3 { color: var(--amber); }
.downloads p { color: #f3dff0; font-size: .95rem; margin-bottom: 12px; }
.downloads strong { color: #fff; }
.btn-dl { margin-top: auto; align-self: start; box-shadow: 0 4px 0 #120a16; font-size: .95rem; }
.btn-dl .size { font-family: var(--font); font-weight: 700; font-size: .8rem; opacity: .85; }
.download a:not(.btn) { color: #fff; }
@media (max-width: 1000px) { .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .downloads { grid-template-columns: 1fr; } }

/* pricing as a quiz result */
.result-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 48px); align-items: center;
  background: var(--white); border: 3px solid var(--plum); border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: 12px 12px 0 var(--green); }
.gauge { position: relative; width: 200px; }
.gauge svg { width: 100%; overflow: visible; }
.gauge path { fill: none; stroke-width: 14; stroke-linecap: round; }
.gauge .track { stroke: var(--paper-2); }
.gauge .fill { stroke: var(--green); stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s cubic-bezier(.3,.7,.3,1); }
.gauge.is-on .fill { stroke-dashoffset: 0; }
.gauge span { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 2.2rem; }
.result-copy h2 { margin-bottom: .3em; }
.result-copy p:not(.kicker) { color: var(--ink-2); }
.result-copy .kicker { color: var(--green-ink); }
.result-cta { display: flex; flex-direction: column; gap: 12px; max-width: 230px; }
@media (max-width: 900px) { .result-card { grid-template-columns: 1fr; justify-items: start; } .result-cta { max-width: none; } }

/* footer */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 30px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-self: end; }
.foot nav a { font-weight: 700; }
.foot p { grid-column: 1 / -1; color: var(--ink-2); font-size: .9rem; margin: 0; }
@media (max-width: 700px) { .foot-in { grid-template-columns: 1fr; } .foot nav { justify-self: start; } }

/* confetti burst when a visitor passes the demo */
.confetti-burst { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .squiz path { stroke-dashoffset: 0; }
  .ticker-in { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 16px; }
  .ticker-in span[aria-hidden] { display: none; }
  .gauge .fill { stroke-dashoffset: 0; }
}

/* the guide, help and privacy rows sit closer together */
#guide, #help { padding-block: clamp(40px, 6vw, 80px); }
