/* Mijn Enquête. Ink navy on paper white; red pencil marks what is chosen, yellow marks what is new. */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --ink: #101b3b;
  --ink-soft: #4a5578;
  --paper: #ffffff;
  --mist: #edf1f9;
  --line: #c3cde3;
  --red: #e5322d;
  --red-deep: #bd211d;
  --yellow: #ffd23f;
  --blue: #2447d6;
  --green: #12704a;
  --navy: #101b3b;          /* the brand navy: hero, closing band; the same in dark mode */
  --surface: #ffffff;       /* cards, fields, sheets */
  --on-ink: #ffffff;        /* text on an --ink background */
  --btn-hover: #24325e;
  --error-bg: #fdeeed;
  --error-ink: #7c1512;
  --ok-bg: #e9f6ef;
  --ok-ink: #0b4a31;
  --placeholder: #7a84a3;
  --tick-line: rgb(16 27 59 / .15);
  color-scheme: light;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pencil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 14.5l3-8 1.6 10.5L12.6 5l1.2 12 4.4-10.5 1.3 7' fill='none' stroke='%23e5322d' stroke-width='3.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --r: 10px;
  --gap: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 750; }
h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.1875rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
strong, b { font-weight: 700; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--yellow); color: var(--navy); padding: .5rem 1rem; font-weight: 700; z-index: 40; }
.skip:focus { top: 1rem; }
.hp { position: absolute; left: -200vw; }
.muted { color: var(--ink-soft); }
.lead { font-size: 1.1875rem; color: var(--ink-soft); max-width: 38em; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 var(--gap); }
.narrow { max-width: 40rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--gap); }
.page-head { padding-top: clamp(1.5rem, 5vw, 3rem); padding-bottom: 4rem; }
.center-page { text-align: center; }
.center-page .lead { margin-inline: auto; }
.error-code { font: 800 5rem/1 var(--display); color: var(--red); margin: 0 0 .25em; }
.plus { display: inline-block; background: var(--yellow); color: var(--navy); font: 700 .75rem/1 var(--body); padding: .3em .55em; border-radius: 4px; vertical-align: .15em; }

/* --- Top bar and footer --------------------------------------------------- */

/* One row, stuck to the top. Once the page scrolls (theme.js sets .is-slim) the bar slims down but the logo
 * keeps its size: it drops over the bar's edge as a sticker, navy on a yellow rim with a red pencil shadow. */
.top {
  --top-bg: var(--paper); --top-fg: var(--ink); --top-soft: var(--ink-soft); --top-line: var(--line); --top-hover: var(--mist);
  position: sticky; top: 0; z-index: 30; background: var(--top-bg); border-bottom: 2px solid var(--ink); transition: box-shadow .3s;
}
.top.is-slim { box-shadow: 0 10px 24px -14px rgb(8 14 34 / .55); }
.top-in { max-width: 68rem; margin: 0 auto; padding: 0 var(--gap); min-height: 4.25rem; display: flex; align-items: center; gap: 1rem; transition: min-height .3s ease; }
.top.is-slim .top-in { min-height: 3rem; }
.top:not(.has-menu) .top-in { flex-wrap: wrap; row-gap: .6rem; padding-block: .5rem; }
.logo { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; font: 500 1.3125rem/1 var(--display); letter-spacing: -.02em; }
.logo b { font-weight: 800; }
.top .logo { flex: none; gap: .55rem; color: var(--top-fg); font-size: 1.4375rem; position: relative; z-index: 1; transform-origin: 1rem 50%; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), color .25s; }
.top .logo svg { width: 2.125rem; height: 2.125rem; flex: none; transition: filter .3s; }
.top .logo span { padding: 0 .1em; text-shadow: 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent, 0 0 0 transparent; transition: text-shadow .3s; }
.top.is-slim .logo { color: var(--navy); transform: translateY(1.1rem) rotate(-3deg) scale(1.04); }
.top.is-slim .logo:hover { transform: translateY(1rem) rotate(-1deg) scale(1.08); }
.top.is-slim .logo span {
  text-shadow:
    2px 0 0 var(--yellow),
    -2px 0 0 var(--yellow),
    0 2px 0 var(--yellow),
    0 -2px 0 var(--yellow),
    1.5px 1.5px 0 var(--yellow),
    -1.5px 1.5px 0 var(--yellow),
    1.5px -1.5px 0 var(--yellow),
    -1.5px -1.5px 0 var(--yellow),
    3px 1px 0 var(--red),
    1px 3px 0 var(--red),
    2.5px 2.5px 0 var(--red),
    4px 2px 0 var(--red),
    2px 4px 0 var(--red),
    3.5px 3.5px 0 var(--red),
    5px 3px 0 #bd211d,
    3px 5px 0 #bd211d,
    4.5px 4.5px 0 #bd211d,
    6px 9px 10px rgb(8 14 34 / .35);
}
.top.is-slim .logo svg { filter: drop-shadow(1.5px 1.5px 0 var(--red)) drop-shadow(1.5px 1.5px 0 var(--red)) drop-shadow(4px 6px 5px rgb(8 14 34 / .3)); }
.top-nav { display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 1.5rem); margin-left: auto; }
.top nav a:not(.btn) { color: var(--top-fg); text-decoration: none; font-weight: 600; padding: .3rem 0; border-bottom: 3px solid transparent; }
.top nav a:not(.btn):hover { border-bottom-color: var(--top-line); }
.top nav a[aria-current] { border-bottom-color: var(--red); }
.top nav form { margin: 0; display: flex; }
.nav-me { display: inline-flex; align-items: center; gap: .5rem; }
.shell-site:has(.hero) .top { --top-bg: var(--navy); --top-fg: #fff; --top-soft: #cfd6ea; --top-line: rgb(255 255 255 / .3); --top-hover: rgb(255 255 255 / .12); border-color: var(--navy); }
.shell-site:has(.hero) .top .btn { background: #fff; color: var(--navy); border-color: #fff; }
.shell-site:has(.hero) .top :focus-visible { outline-color: var(--yellow); }

.foot { border-top: 2px solid var(--ink); margin-top: 3rem; }
.foot-in { max-width: 68rem; margin: 0 auto; padding: 1.25rem var(--gap); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9375rem; color: var(--ink-soft); }
.foot p { margin: 0; }
.foot a { color: var(--ink); margin-left: 1.25rem; }
.foot a:first-child { margin-left: 0; }
.shell-site:has(.closing) .foot { margin-top: 0; }

/* --- Buttons, fields, notices -------------------------------------------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 1rem/1.2 var(--body); padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--on-ink); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--on-ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: #bd211d; border-color: #bd211d; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--mist); color: var(--ink); border-color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--red-deep); border-color: var(--red-deep); }
.btn-danger:hover { background: #bd211d; border-color: #bd211d; color: #fff; }
.btn-s { padding: .5rem 1rem; font-size: .9375rem; }
.btn-l { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-wide { width: 100%; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
button.link:hover { color: var(--ink); }
.top button.link { color: var(--top-soft); text-decoration: none; font-weight: 600; }
.top button.link:hover { color: var(--top-fg); }
.link.danger { color: var(--red-deep); }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

.field { margin-bottom: 1.25rem; }
label, .field > label { display: block; font-weight: 700; margin-bottom: .35rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); padding: .7rem .85rem; }
textarea { resize: vertical; min-height: 3rem; }
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-radius: var(--r); }
input[disabled] { background: var(--mist); border-color: var(--line); color: var(--ink-soft); }
input[type=file] { font: inherit; max-width: 100%; }
.hint { font-size: .9375rem; color: var(--ink-soft); margin: .4rem 0 0; }
.error { font-size: .9375rem; font-weight: 600; color: var(--red-deep); margin: .4rem 0 0; }
.has-error input { border-color: var(--red-deep); }
.prefixed { display: flex; align-items: stretch; border: 2px solid var(--ink); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.prefixed:focus-within { outline: 3px solid var(--blue); outline-offset: 1px; }
.prefixed .prefix { display: flex; align-items: center; padding: 0 0 0 .85rem; color: var(--ink-soft); white-space: nowrap; }
.prefixed input { border: 0; border-radius: 0; padding-left: .1rem; min-width: 6ch; outline: none !important; font-weight: 700; }
.has-error .prefixed { border-color: var(--red-deep); }
.code-input { font: 700 1.75rem/1 var(--display) !important; letter-spacing: .2em; max-width: 14rem; text-align: center; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500; margin-bottom: 1.25rem; cursor: pointer; }
.check input { flex: none; margin-top: .15rem; }

input[type=radio], input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; width: 1.5rem; height: 1.5rem; margin: 0; border: 2px solid var(--ink); background: var(--surface) center / 100% no-repeat; cursor: pointer; }
input[type=radio] { border-radius: 50%; }
input[type=checkbox] { border-radius: 5px; }
input[type=radio]:checked, input[type=checkbox]:checked { background-image: var(--pencil); }

.notice { border: 2px solid var(--ink); border-radius: var(--r); padding: .85rem 1rem; margin: 0 0 1.5rem; font-weight: 500; }
.notice p:last-child { margin: 0; }
.notice-error { border-color: var(--red-deep); background: var(--error-bg); color: var(--error-ink); }
.notice-ok { border-color: var(--green); background: var(--ok-bg); color: var(--ok-ink); }
.flashes { max-width: 68rem; margin: 1rem auto 0; padding: 0 var(--gap); width: 100%; }
.flash { border-radius: var(--r); padding: .8rem 1rem; margin: 0 0 .5rem; font-weight: 600; border: 2px solid var(--green); background: var(--ok-bg); color: var(--ok-ink); }
.flash-error { border-color: var(--red-deep); background: var(--error-bg); color: var(--error-ink); }

details { margin: 0 0 1rem; }
summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: .25rem 0; }
details[open] summary { margin-bottom: 1rem; color: var(--ink); }

.avatar { border-radius: 50%; object-fit: cover; background: var(--mist); flex: none; width: 2.5rem; height: 2.5rem; }
.avatar-blank { display: inline-flex; align-items: center; justify-content: center; background: var(--yellow); color: var(--navy); font: 800 1rem/1 var(--display); }
.avatar-s { width: 1.75rem; height: 1.75rem; font-size: .8125rem; }
.avatar-l { width: 5.5rem; height: 5.5rem; font-size: 2.25rem; }
.avatar-xl { width: 7rem; height: 7rem; font-size: 3rem; border: 2px solid var(--ink); }

.status { display: inline-block; font-size: .8125rem; font-weight: 700; padding: .2em .65em; border-radius: 999px; border: 2px solid var(--ink); margin-right: .4rem; vertical-align: .08em; }
.status-draft { border-style: dashed; color: var(--ink-soft); border-color: var(--ink-soft); }
.status-published { background: var(--ink); color: var(--on-ink); }
.status-closed { background: var(--mist); border-color: var(--line); color: var(--ink-soft); }

.addr { font: 500 1.0625rem/1.3 var(--display); overflow-wrap: anywhere; margin: 0 0 .75rem; }
.addr span { color: var(--ink-soft); }
.addr b { font-weight: 750; }

/* --- Home ------------------------------------------------------------------ */

.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero-in { max-width: 68rem; margin: 0 auto; padding: clamp(2.5rem, 7vw, 5.5rem) var(--gap) clamp(3rem, 8vw, 6rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 8.5vw, 5.25rem); font-weight: 800; line-height: .95; letter-spacing: -.035em; margin-bottom: .4em; }
.hero .lead { color: #cfd6ea; font-size: clamp(1.125rem, 2vw, 1.3125rem); }
.hero :focus-visible { outline-color: var(--yellow); }
.claim { margin-top: 2rem; }
.claim label { color: #fff; }
.claim-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.claim .prefixed { flex: 1 1 16rem; border-color: #fff; font-size: 1.125rem; }
.claim .prefixed:focus-within { outline-color: var(--yellow); }
.claim input { padding-block: .85rem; }
.hero-note { color: #aab4d2; font-size: .9375rem; margin: .9rem 0 0; }

.demo { background: #fff; color: var(--ink); border-radius: 6px; padding: 1.5rem clamp(1.1rem, 3vw, 1.75rem) 1.6rem; position: relative; transform: rotate(1.2deg); box-shadow: 10px 10px 0 var(--red); }
.demo-tab { position: absolute; top: -.9rem; left: 1.25rem; background: var(--yellow); color: var(--navy); font-weight: 700; font-size: .875rem; padding: .25rem .7rem; margin: 0; border-radius: 4px; }
.ballot fieldset { border: 0; padding: 0; margin: 0; }
.ballot legend { font: 700 1.3125rem/1.2 var(--display); padding: 0; margin-bottom: .9rem; }
.demo-results { border-top: 2px dashed var(--line); margin-top: 1.1rem; padding-top: 1rem; }
.demo-count { font-size: .9375rem; color: var(--ink-soft); margin-bottom: .6rem; }
.demo-count b { color: var(--ink); }
.demo .pick { padding: .55rem .8rem; }

.band { background: var(--mist); padding: clamp(3rem, 8vw, 5.5rem) 0; }
.links { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.links li { display: grid; grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); gap: .75rem clamp(1.5rem, 5vw, 4rem); align-items: center; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.links .addr { background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; padding: .65rem 1.2rem; font-size: 1.0625rem; margin: 0; }
.links li:nth-child(2) .addr b { font-size: .875rem; }
.links h3 { margin-bottom: .25em; }
.links p:last-child { color: var(--ink-soft); margin: 0; }

.plans-section { padding-top: clamp(3rem, 8vw, 5.5rem); padding-bottom: clamp(3rem, 8vw, 5.5rem); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 0; margin-top: 2.5rem; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.plan { padding: clamp(1.5rem, 4vw, 2.5rem); }
.plan-plus { background: var(--yellow); }
.plan h3 { font-size: 1.5rem; margin-bottom: .1em; }
.plan-price { font: 800 2.5rem/1.1 var(--display); letter-spacing: -.02em; margin-bottom: 1.25rem; }
.plan-note { font-weight: 600; margin: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.ticks li { padding: .45rem 0 .45rem 2rem; background: var(--pencil) 0 .5rem / 1.35rem no-repeat; border-top: 1px solid var(--tick-line); }
.ticks li:first-child { border-top: 0; }

.closing { background: var(--red); color: #fff; padding: clamp(3rem, 8vw, 5rem) 0; text-align: center; }
.closing h2 { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 800; max-width: 16em; margin: 0 auto .8em; }
.closing .btn { background: #fff; color: var(--navy); border-color: #fff; }
.closing .btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.closing p { margin: 0; }
.closing :focus-visible { outline-color: var(--yellow); }

/* --- The answer row: shared by the home demo and every survey --------------- */

.pick { display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem; margin: 0 0 .5rem; border: 2px solid var(--line); border-radius: var(--r); font-weight: 500; cursor: pointer; }
.pick:hover { border-color: var(--ink); }
.pick:has(input:checked) { border-color: var(--ink); background: var(--mist); font-weight: 700; }
.pick:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.pick input:focus-visible { outline: none; }
.pick span { overflow-wrap: anywhere; }
.pick-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; max-width: 24rem; }

.tally { display: grid; grid-template-columns: minmax(6rem, 11rem) 1fr auto; align-items: center; gap: .75rem; padding: .3rem 0; font-size: .9375rem; }
.tally-label { overflow-wrap: anywhere; font-weight: 600; }
.tally-n { font-weight: 700; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.bar { width: 100%; height: .7rem; display: block; border-radius: 999px; }
.bar-track { fill: var(--mist); }
.bar-fill { fill: var(--red); transition: width .35s ease; }
.demo .tally { grid-template-columns: 8.5rem 1fr auto; }

/* --- Sign-in pages --------------------------------------------------------- */

.auth { padding: clamp(2rem, 6vw, 4.5rem) var(--gap) 4rem; }
.auth-form { max-width: 27rem; margin: 0 auto; }
.auth-form h1 { margin-bottom: .35em; }
.auth-form .lead { font-size: 1.0625rem; margin-bottom: 1.75rem; }
.aside { margin: 1.1rem 0 0; color: var(--ink-soft); font-size: .9875rem; }

.steps { padding: 0; margin: 2rem 0 0; list-style: none; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 2rem 3.25rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -.15rem; width: 2.25rem; height: 2.25rem; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: 800 1.0625rem/1 var(--display); }
.steps h2 { font-size: 1.25rem; }
.qr-wrap { width: 13rem; border: 2px solid var(--ink); border-radius: var(--r); padding: .4rem; margin: 1rem 0; background: #fff; }
.qr { display: block; width: 100%; height: auto; }
.secret { font: 700 1.125rem/1.5 ui-monospace, Consolas, monospace; background: var(--mist); padding: .6rem .9rem; border-radius: var(--r); overflow-wrap: anywhere; }
.codes { list-style: none; padding: 1.25rem; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .6rem 1.5rem; background: var(--yellow); border-radius: var(--r); font: 700 1.125rem/1.4 ui-monospace, Consolas, monospace; }

/* --- Dashboard ------------------------------------------------------------- */

.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.head-row h1 { margin-bottom: .15em; }
.head-row p { margin: 0; }
.head-row form { margin: 0; }
.crumb { font-size: .9375rem; font-weight: 600; margin: 0 0 .75rem; }
.crumb a { color: var(--ink-soft); }
.empty { border: 2px dashed var(--line); border-radius: var(--r); padding: clamp(2rem, 6vw, 3.5rem); text-align: center; }
.empty p { color: var(--ink-soft); max-width: 30em; margin-inline: auto; }
.empty .addr { color: var(--ink); }
.survey-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.survey-list li { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.survey-main { min-width: 0; }
.survey-list h2 { font-size: 1.3125rem; margin-bottom: .3em; overflow-wrap: anywhere; }
.survey-list h2 a { color: var(--ink); text-decoration: none; }
.survey-list h2 a:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.survey-list p { margin: 0; font-size: .9375rem; }
.survey-link { margin-top: .3rem !important; overflow-wrap: anywhere; }
.survey-count { flex: none; text-align: center; text-decoration: none; color: var(--ink); min-width: 6.5rem; padding: .6rem .9rem; border: 2px solid var(--line); border-radius: var(--r); }
.survey-count:hover { border-color: var(--ink); background: var(--mist); }
.survey-count b { display: block; font: 800 1.75rem/1 var(--display); }
.survey-count span { font-size: .8125rem; color: var(--ink-soft); }

/* --- Account --------------------------------------------------------------- */

.panel { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 30rem); gap: 1.5rem clamp(2rem, 6vw, 5rem); padding: 2.25rem 0; border-top: 2px solid var(--ink); }
.panel-side h2 { font-size: 1.3125rem; }
.panel-side p { color: var(--ink-soft); font-size: .9875rem; margin: 0; }
.panel-body > :last-child, .panel-body form > :last-child { margin-bottom: 0; }
.photo-row { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 2rem; flex-wrap: wrap; }
.photo-form .btn { margin-top: .75rem; }
.photo-row form + form { margin-top: .75rem; }
.state { font-weight: 700; padding-left: 1.6rem; position: relative; }
.state::before { content: ""; position: absolute; left: 0; top: .3em; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--ink); }
.state-on::before { background: var(--green); border-color: var(--green); }

/* --- Builder --------------------------------------------------------------- */

body:has(.builder) { background: var(--mist); }
.builder-bar { position: sticky; top: calc(3rem + 2px); z-index: 10; background: var(--surface); border-bottom: 2px solid var(--ink); }
.builder-bar-in { max-width: 50rem; margin: 0 auto; padding: .6rem var(--gap); display: flex; align-items: center; gap: .5rem 1.25rem; flex-wrap: wrap; }
.builder-bar .crumb { margin: 0; }
.builder-state { display: flex; align-items: center; gap: .25rem; margin-right: auto; }
.save-state { font-size: .875rem; color: var(--ink-soft); font-weight: 600; }
.save-state.is-dirty { color: var(--ink); background: var(--yellow); padding: .1rem .5rem; border-radius: 4px; }
.save-state.is-error { color: var(--red-deep); }
.builder-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.builder-actions form { margin: 0; }
.builder { max-width: 50rem; margin: 0 auto; padding: 1.5rem var(--gap) 5rem; }
.sheet { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: clamp(1.1rem, 3vw, 1.75rem); margin-bottom: 1rem; }
.sheet:focus-within { border-color: var(--ink); }
.sheet-head { border-top: .6rem solid var(--ink); border-color: var(--ink); }
.title-input { font: 750 clamp(1.5rem, 4vw, 2.125rem)/1.15 var(--display) !important; border: 0 !important; border-bottom: 2px solid var(--line) !important; border-radius: 0 !important; padding: .25rem 0 .5rem !important; margin-bottom: 1rem; letter-spacing: -.015em; }
.title-input:focus-visible { outline: none !important; border-bottom-color: var(--blue) !important; }
.sheet-head textarea { border-color: var(--line); }
.share { background: var(--yellow); border-radius: var(--r); padding: 1rem clamp(1.1rem, 3vw, 1.75rem); margin-bottom: 1rem; display: flex; gap: 1.25rem; align-items: center; }
.share-main { flex: 1; min-width: 0; }
.share-row { display: flex; gap: .5rem; }
.share-row input { font-weight: 700; }
.share .hint { color: var(--ink); }
.share .hint a { color: var(--ink); font-weight: 700; }
.share-qr { flex: none; width: 7rem; height: 7rem; border: 2px solid var(--ink); border-radius: 6px; background: #fff; }
.copy-zone { background: transparent; }
.copy-zone p { color: var(--ink-soft); font-size: .9375rem; margin-bottom: .75rem; }

.questions { list-style: none; padding: 0; margin: 0; }
.q { position: relative; }
.q-top { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.q-n { font: 800 1.125rem/1 var(--display); width: 2.1rem; height: 2.1rem; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; flex: none; }
.q-type { width: auto; padding: .4rem 2rem .4rem .7rem; font-weight: 700; font-size: .9375rem; border-color: var(--line); }
.q-tools { margin-left: auto; display: flex; gap: .25rem; }
.icon-btn { width: 2.25rem; height: 2.25rem; border: 2px solid transparent; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.icon-btn:hover:not([disabled]) { border-color: var(--ink); background: var(--mist); }
.icon-btn[disabled] { opacity: .3; cursor: default; }
.icon-btn svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.is-danger:hover { color: var(--red-deep); border-color: var(--red-deep); background: var(--error-bg); }
.q-title { font-weight: 700 !important; font-size: 1.1875rem !important; }
.q-help { margin-top: .5rem; border-color: var(--line) !important; font-size: .9375rem !important; }
.q-choices { list-style: none; padding: 0; margin: 1rem 0 0; }
.q-choices li { display: flex; align-items: center; gap: .6rem; margin-bottom: .45rem; }
.q-choices .mark { width: 1.25rem; height: 1.25rem; border: 2px solid var(--ink-soft); flex: none; border-radius: 50%; }
.q-choices .mark-square { border-radius: 4px; }
.q-choices input { border-color: var(--line); padding: .5rem .7rem; }
.q-add-choice { margin: .25rem 0 0 1.85rem; font-weight: 700; }
.q-scale { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; margin-top: 1rem; }
.q-scale label { font-size: .875rem; }
.q-scale input, .q-scale select { border-color: var(--line); padding: .5rem .7rem; }
.q-preview { margin-top: 1rem; color: var(--ink-soft); font-size: .9375rem; }
.q-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.q-foot .check { margin: 0; font-weight: 600; font-size: .9375rem; align-items: center; }
.q-foot .check input { margin: 0; width: 1.25rem; height: 1.25rem; }
.q-image { display: flex; align-items: center; gap: .75rem; font-size: .9375rem; }
.q-image img { width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: 6px; border: 2px solid var(--line); }
.q.is-flagged { border-color: var(--red-deep); }

.add { margin: 1.5rem 0 2rem; }
.add > p { font-weight: 700; margin-bottom: .6rem; }
.add-types { display: flex; flex-wrap: wrap; gap: .5rem; }
.add-types button { font: 600 .9375rem/1.2 var(--body); padding: .55rem .95rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; gap: .45rem; align-items: center; }
.add-types button:hover { background: var(--ink); color: var(--on-ink); }
.add-types button.is-locked { border-style: dashed; border-color: var(--ink-soft); color: var(--ink-soft); }
.add-types button.is-locked:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.settings h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.settings textarea, .settings .prefixed { border-color: var(--line); }
.settings .field:last-child { margin-bottom: 0; }
.danger-zone { background: transparent; border-style: dashed; }
.danger-zone details { margin: 0; }
.danger-zone summary { color: var(--red-deep); }

/* --- Results --------------------------------------------------------------- */

.tabs { display: flex; gap: 1.5rem; border-bottom: 2px solid var(--ink); margin: 0 0 1.5rem; }
.tabs a { color: var(--ink-soft); font-weight: 700; text-decoration: none; padding: .5rem 0; margin-bottom: -2px; border-bottom: 4px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--red); }
.tabs-below + .total { border-top: 0; padding-top: 0; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; max-width: 46rem; }
.pager p { margin: 0; text-align: center; flex: 1; }
.btn.is-off { opacity: .35; pointer-events: none; }
.one-response { margin: 0 0 2rem; max-width: 46rem; border-top: 1px solid var(--line); }
.one-response > div { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.one-response dt { font: 700 1.125rem/1.3 var(--display); display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .5rem; overflow-wrap: anywhere; }
.one-response .q-n { width: 1.85rem; height: 1.85rem; font-size: .9375rem; }
.one-response dd { margin: 0 0 0 2.6rem; overflow-wrap: anywhere; }
.delete-one summary { color: var(--red-deep); }
.delete-one p { color: var(--ink-soft); max-width: 36em; }
.total { font-size: 1.125rem; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.total b { font: 800 2.5rem/1 var(--display); margin-right: .15em; }
.result-list { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: r; max-width: 46rem; }
.result { counter-increment: r; padding: 1.75rem 0 1.75rem 3.25rem; border-top: 1px solid var(--line); position: relative; }
.result::before { content: counter(r); position: absolute; left: 0; top: 1.6rem; width: 2.1rem; height: 2.1rem; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: 800 1.0625rem/1 var(--display); }
.result h2 { font-size: 1.25rem; margin-bottom: .2em; overflow-wrap: anywhere; }
.result > .muted { font-size: .9375rem; }
.average { font-size: 1rem; }
.average b { font: 800 2rem/1 var(--display); margin-right: .2em; }
.texts { list-style: none; padding: 0; margin: 0; max-height: 26rem; overflow: auto; border: 2px solid var(--line); border-radius: var(--r); }
.texts li { padding: .65rem .9rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.texts li:last-child { border-bottom: 0; }

/* --- What a respondent sees ------------------------------------------------ */

.shell-survey { background: var(--mist); }
.survey { max-width: 42rem; margin: 0 auto; padding: clamp(1rem, 4vw, 2.5rem) clamp(.75rem, 3vw, 1.5rem) 3rem; width: 100%; }
.survey-head { background: var(--surface); border: 2px solid var(--ink); border-top-width: .75rem; border-radius: var(--r); padding: clamp(1.25rem, 4vw, 2.25rem); margin-bottom: 1rem; }
.survey-head h1 { overflow-wrap: anywhere; }
.survey-intro { font-size: 1.125rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.survey-by { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; font-weight: 600; color: var(--ink-soft); margin: 0; }
.preview-note { background: var(--yellow); border-radius: var(--r); padding: .75rem 1rem; font-weight: 600; margin-bottom: 1rem; }
.preview-note a { color: var(--ink); }
.survey-questions { list-style: none; padding: 0; margin: 0; }
.sq { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: clamp(1.1rem, 4vw, 1.75rem); margin-bottom: 1rem; }
.sq:focus-within { border-color: var(--ink); }
.sq-error { border-color: var(--red-deep); }
.sq fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.sq legend, .sq-title { display: flex; gap: .8rem; align-items: flex-start; padding: 0; margin: 0 0 1rem; width: 100%; font: 700 1.25rem/1.3 var(--display); }
.sq-n { flex: none; width: 2rem; height: 2rem; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: 1rem; font-weight: 800; margin-top: -.15rem; }
.sq-text { overflow-wrap: anywhere; min-width: 0; }
.req { font: 600 .8125rem/1 var(--body); color: var(--red-deep); white-space: nowrap; margin-left: .25rem; }
.sq-body > .hint:first-child { margin: -.5rem 0 1rem; }
.sq-image { display: block; border-radius: 6px; margin: 0 0 1rem; max-height: 26rem; }
.sq select { max-width: 24rem; }
.input-date { max-width: 14rem; }

.stars { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.stars label { cursor: pointer; margin: 0; position: relative; line-height: 0; }
.stars input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border-radius: 0; }
.stars svg { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.stars label:has(input:checked) svg, .stars label:has(input:checked) ~ label svg { fill: var(--red); stroke: var(--red-deep); }
.stars label:hover svg, .stars label:hover ~ label svg { fill: var(--yellow); stroke: var(--ink); }
.stars label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.scale { display: flex; gap: .35rem; flex-wrap: wrap; }
.scale label { margin: 0; position: relative; cursor: pointer; flex: 1 0 2.6rem; max-width: 3.5rem; }
.scale input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.scale span { display: grid; place-items: center; height: 2.9rem; border: 2px solid var(--line); border-radius: var(--r); font-weight: 700; }
.scale label:hover span { border-color: var(--ink); }
.scale input:checked + span { background: var(--red); border-color: var(--red-deep); color: #fff; }
.scale input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.scale-ends { display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; color: var(--ink-soft); margin: .5rem 0 0; }

.survey-send { margin: 1.75rem 0 2.5rem; }
.survey-send .hint { margin-top: .9rem; }
.made-with { text-align: center; font-size: .875rem; color: var(--ink-soft); margin: 2rem 0 0; }
.made-with a { color: var(--ink); font-weight: 700; }
.survey-end { text-align: center; padding-top: clamp(3rem, 12vh, 7rem); }
.survey-end .lead { margin-inline: auto; overflow-wrap: anywhere; }
.survey-end .survey-by { justify-content: center; margin-top: 2rem; }
.end-mark { margin-bottom: 1rem; }

/* --- Profile and prose ----------------------------------------------------- */

.profile-head { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.profile-head h1 { margin-bottom: .15em; }
.profile-head .lead { font-size: 1.0625rem; margin: 0; }
.profile-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.profile-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.profile-list a { font: 700 1.25rem/1.3 var(--display); color: var(--ink); }
.profile-list p { margin: .3rem 0 0; color: var(--ink-soft); }
.prose h2 { margin-top: 2em; font-size: 1.375rem; }

/* --- Small screens --------------------------------------------------------- */

@media (max-width: 52rem) {
  .hero-in { grid-template-columns: 1fr; }
  .demo { transform: none; box-shadow: 6px 6px 0 var(--red); margin-right: 6px; }
  .panel { grid-template-columns: 1fr; gap: 1rem; padding: 1.75rem 0; }
  .links li { grid-template-columns: 1fr; }
}
@media (max-width: 34rem) {
  .nav-me span { display: none; }
  .survey-list li { flex-direction: column; align-items: stretch; gap: .9rem; }
  .survey-count { display: flex; align-items: baseline; gap: .5rem; justify-content: center; }
  .survey-count b { font-size: 1.375rem; }
  .tally, .demo .tally { grid-template-columns: 1fr auto; }
  .tally .bar { grid-column: 1 / -1; grid-row: 2; }
  .builder-state { width: 100%; order: 3; }
  .share-row { flex-wrap: wrap; }
  .share { flex-direction: column; align-items: stretch; }
  .share-qr { align-self: flex-start; }
  .one-response dd { margin-left: 0; }
  .result { padding-left: 0; padding-top: 4.25rem; }
  .steps > li { padding-left: 0; padding-top: 2.75rem; }
  .steps > li::before { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .top, .foot, .btn { display: none !important; }
}

/* --- Retention, the bin, Plus ------------------------------------------------ */

.expiry { font-size: .875rem; color: var(--ink-soft); margin: .3rem 0 0 !important; padding-left: 1.3rem; position: relative; }
.expiry::before { content: ""; position: absolute; left: 0; top: .3em; width: .8rem; height: .8rem; border: 2px solid var(--ink-soft); border-radius: 50%; border-top-color: transparent; }
.expiry-soon { color: var(--red-deep); font-weight: 600; }
.expiry-soon::before { border-color: var(--red-deep); border-top-color: transparent; }
.expiry-box { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: .75rem 1rem .75rem 2.4rem; margin: 0 0 1rem !important; }
.expiry-box::before { left: 1rem; top: 1.05rem; }
.expiry-box.expiry-soon { border-color: var(--red-deep); }
.bin-link { margin-top: 1.5rem; font-weight: 600; }
.retention-note { font-size: .9375rem; margin-top: 1rem; }
.bin-list h2 { font-size: 1.1875rem; }
.bin-actions { margin-top: .9rem; }
.bin-actions form { margin: 0; }
.bin-actions details { margin: 0; }
.bin-actions summary { color: var(--red-deep); font-size: .9375rem; }
.check-hint { align-items: flex-start; }
.check small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .875rem; margin-top: .2rem; }
.plan-price small { font: 500 1rem/1 var(--body); color: var(--ink); }
.plan-buy { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.plan-buy form { margin: 0; }
.plan-buy .btn { width: 100%; }

/* --- Pricing: four plans, monthly or yearly -------------------------------------- */

.pricing { margin-top: 2rem; }
.billing-switch { border: 2px solid var(--ink); border-radius: 999px; padding: .25rem; display: inline-flex; gap: .25rem; margin: 0 0 1.75rem; }
.billing-switch label { margin: 0; cursor: pointer; }
.billing-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.billing-switch span { display: block; padding: .5rem 1.1rem; border-radius: 999px; font-weight: 700; }
.billing-switch small { font-weight: 600; color: var(--green); margin-left: .25rem; }
.billing-switch input:checked + span { background: var(--ink); color: var(--on-ink); }
.billing-switch input:checked + span small { color: var(--yellow); }
.billing-switch input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.plans-4 { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); border: 0; gap: 1rem; overflow: visible; margin-top: 0; }
.plans-4 .plan { border: 2px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; position: relative; padding: 1.5rem 1.25rem; }
.plans-4 .plan h3 { font-size: 1.375rem; }
.plans-4 .ticks { flex: 1; margin-bottom: 1.25rem; }
.plans-4 .ticks li { font-size: .9375rem; }
.plan-featured { border-color: var(--ink) !important; background: var(--yellow); box-shadow: 6px 6px 0 var(--red); }
.plan-badge { position: absolute; top: -.85rem; left: 1.25rem; margin: 0; background: var(--red); color: #fff; font-weight: 700; font-size: .8125rem; padding: .25rem .7rem; border-radius: 4px; }
.plan-pitch { color: var(--ink-soft); font-size: .9375rem; min-height: 2.8em; }
.plan-featured .plan-pitch { color: var(--ink); }
.plans-4 .plan-price { font-size: 2rem; margin-bottom: .25rem; }
.plan-year { display: block; font: 500 .8125rem/1.3 var(--body); color: var(--ink-soft); margin-top: .3rem; }
.plan-featured .plan-year { color: var(--ink); }
.plan-trial { display: inline-block; background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: .8125rem; padding: .2rem .6rem; border-radius: 4px; margin: .25rem 0 .75rem; align-self: flex-start; }
.plan-current { font-weight: 700; margin: 0; }
.plan-cta { margin: 0; }
.plans-4 .plan-buy { display: flex; flex-direction: column; gap: .5rem; margin: 0; }
.plans-4 .plan-buy select { font-size: .9375rem; padding: .5rem .7rem; }
.plans-4 .plan-buy .btn { width: 100%; }
.price-year, .buy-year { display: none !important; }
.pricing:has(input[value=year]:checked) .price-year,
.pricing:has(input[value=year]:checked) .buy-year { display: block !important; }
.pricing:has(input[value=year]:checked) .buy-year { display: flex !important; }
.pricing:has(input[value=year]:checked) .price-month,
.pricing:has(input[value=year]:checked) .buy-month { display: none !important; }
.plan-enterprise { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; border: 2px solid var(--ink); border-radius: var(--r); padding: 1.25rem 1.5rem; margin-top: 1rem; }
.plan-enterprise h3 { margin-bottom: .25em; }
.plan-enterprise p { margin: 0; color: var(--ink-soft); max-width: 42em; }
.plan-enterprise p:last-child { color: inherit; }
.plans-small { font-size: .875rem; margin-top: 1.25rem; max-width: 60em; }
.checkout-frame { margin-top: 1.5rem; min-height: 24rem; }
.checkout-page { max-width: 44rem; }
.enkel-offer { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; background: var(--surface); border: 2px dashed var(--ink); border-radius: var(--r); padding: .75rem 1rem; margin-bottom: 1rem; }
.enkel-offer p { margin: 0; font-weight: 600; }
.expiry-box p { margin: 0; }
.expiry-box form { margin: .6rem 0 0; }
.ticks li { overflow-wrap: anywhere; }
.vat-note { display: inline-block; margin: 0 0 1.75rem 1rem; font-size: .9375rem; font-weight: 600; color: var(--ink-soft); }
.billing-switch + .vat-note { vertical-align: top; margin-top: .85rem; }

/* --- Dark mode ------------------------------------------------------------------------
 * Follows the device unless the visitor picked one (html[data-theme], from the me_theme cookie).
 * Only the tokens change; yellow and white "paper" islands keep their light ink (see below). */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8ecf8; --ink-soft: #a7b1cf; --paper: #0c1329; --surface: #141d3a; --mist: #1b2648; --line: #34416b;
    --blue: #93abff; --green: #4cc38a; --red-deep: #ff7a75; --on-ink: #101b3b; --btn-hover: #c9d2ee;
    --error-bg: #3a1619; --error-ink: #ffcfcc; --ok-bg: #0f2f20; --ok-ink: #c2f0d6; --placeholder: #7e89ad;
    --tick-line: rgb(255 255 255 / .12); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e8ecf8; --ink-soft: #a7b1cf; --paper: #0c1329; --surface: #141d3a; --mist: #1b2648; --line: #34416b;
  --blue: #93abff; --green: #4cc38a; --red-deep: #ff7a75; --on-ink: #101b3b; --btn-hover: #c9d2ee;
  --error-bg: #3a1619; --error-ink: #ffcfcc; --ok-bg: #0f2f20; --ok-ink: #c2f0d6; --placeholder: #7e89ad;
  --tick-line: rgb(255 255 255 / .12); color-scheme: dark;
}
/* Light islands: yellow and white panels read as paper in both modes. */
.plan-featured, .share, .preview-note, .codes, .demo, .plan-save, .premium-switch.is-premium, .badge-premium {
  --ink: #101b3b; --ink-soft: #3b4566; --surface: #ffffff; --mist: #edf1f9; --line: #c3cde3; --blue: #2447d6;
  --green: #12704a; --red-deep: #bd211d; --on-ink: #ffffff; --btn-hover: #24325e; --placeholder: #7a84a3;
  --tick-line: rgb(16 27 59 / .15); color: var(--ink);
}
:root[data-theme="dark"] .billing-switch input:checked + span small { color: #12704a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .billing-switch input:checked + span small { color: #12704a; } }
:root[data-theme="dark"] .status-closed { background: var(--mist); }
:root[data-theme="dark"] img.sq-image, :root[data-theme="dark"] .q-image img { background: #fff; }

/* --- Language and theme switches ------------------------------------------------------- */

.lang-switch { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; padding: .1rem; font: 700 .75rem/1 var(--body); letter-spacing: .04em; }
.lang-switch > * { padding: .35rem .5rem; border-radius: 999px; text-decoration: none; }
.lang-switch a { color: var(--ink-soft); }
.lang-switch a:hover { color: var(--ink); background: var(--mist); }
.lang-switch [aria-current] { background: var(--ink); color: var(--on-ink); }
.theme-switch { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px solid var(--line); color: var(--ink); }
.theme-switch:hover { background: var(--mist); color: var(--ink); }
.theme-switch svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-switch .i-moon { fill: currentColor; stroke: none; }
.theme-switch .i-sun { display: none; }
:root[data-theme="dark"] .theme-switch .i-moon { display: none; }
:root[data-theme="dark"] .theme-switch .i-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-switch .i-moon { display: none; }
  :root:not([data-theme="light"]) .theme-switch .i-sun { display: block; }
}

/* The header's controls: language, theme and (on small screens) the menu, all 2.25rem high on one line. */
.prefs { display: flex; align-items: center; gap: .5rem; flex: none; padding-left: 1rem; border-left: 1px solid var(--top-line); }
.top .theme-switch, .lang-menu summary, .menu-btn { height: 2.25rem; border: 2px solid var(--top-line); color: var(--top-fg); background: transparent; transition: background-color .15s, border-color .15s; }
.top .theme-switch { width: 2.25rem; }
.top .theme-switch:hover, .lang-menu summary:hover, .lang-menu[open] summary, .menu-btn:hover { background: var(--top-hover); color: var(--top-fg); border-color: var(--top-fg); }
.lang-menu { position: relative; margin: 0; }
.lang-menu[open] summary { margin: 0; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: .3rem; padding: 0 .55rem 0 .75rem; border-radius: 999px; font: 700 .8125rem/1 var(--body); letter-spacing: .05em; cursor: pointer; user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: .75rem; height: .75rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.lang-menu[open] summary svg { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + .6rem); z-index: 3; min-width: 11rem; display: grid; gap: 2px; padding: .35rem; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 5px 5px 0 var(--red); }
.lang-list > * { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; }
.lang-list b { width: 1.5rem; font-size: .75rem; letter-spacing: .05em; color: var(--ink-soft); }
.lang-list a:hover { background: var(--mist); color: var(--ink); }
.lang-list [aria-current] { background: var(--mist); }
.lang-list [aria-current] b { color: var(--red); }
.menu-btn { display: none; place-items: center; width: 2.5rem; padding: 0; border-radius: 999px; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 1.05rem; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, background-color .15s; }
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { transform: translateY(-5px); }
.menu-btn span::after { transform: translateY(5px); }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: rotate(45deg); }
.menu-open .menu-btn span::after { transform: rotate(-45deg); }

/* Small screens: the links fold away behind the menu button (only with JavaScript; without it they wrap). */
@media (max-width: 52rem) {
  .top.has-menu .menu-btn { display: inline-grid; }
  .top.has-menu .prefs { margin-left: auto; padding-left: 0; border-left: 0; }
  .top.has-menu .top-nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 2px); margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: .25rem var(--gap) 1.25rem;
    background: var(--top-bg); border-bottom: 2px solid var(--ink); box-shadow: 0 18px 28px -18px rgb(8 14 34 / .5);
    visibility: hidden; opacity: 0; transform: translateY(-.5rem); transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .top.menu-open .top-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .top.has-menu .top-nav a:not(.btn), .top.has-menu .top-nav button.link { display: flex; width: 100%; padding: .85rem 0; border-bottom: 1px solid var(--top-line); font-size: 1.0625rem; text-align: left; color: var(--top-fg); }
  .top.has-menu .top-nav a[aria-current] { border-bottom-color: var(--top-line); box-shadow: inset 4px 0 0 var(--red); padding-left: .9rem; }
  .top.has-menu .top-nav .nav-me span { display: inline; }
  .top.has-menu .top-nav .btn { margin-top: 1rem; }
  .top.menu-open .logo { transform: none; }
}
@media (max-width: 34rem) {
  .top .logo { font-size: 1.25rem; gap: .45rem; }
  .top .logo svg { width: 1.875rem; height: 1.875rem; }
  .prefs { gap: .4rem; }
}
.survey-prefs { display: flex; justify-content: center; align-items: center; gap: .6rem; padding: 0 1rem 2rem; }
.foot a { margin-left: 1.25rem; }

/* --- Wider pages (pricing) ------------------------------------------------------------- */

.wrap-wide { max-width: 78rem; }

/* --- Pricing: head (name, price, button) first, what is included below ------------------ */

.pricing-top { display: flex; align-items: center; gap: .75rem 1.25rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.pricing-top .billing-switch, .pricing-top .vat-note { margin: 0; }
.plans-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.plans-4 .plan { padding: 1.75rem 1.4rem 1.4rem; }
.plan-head { display: flex; flex-direction: column; gap: .15rem; padding-bottom: 1.25rem; margin-bottom: 1rem; border-bottom: 2px solid var(--tick-line); }
.plan-head h3 { margin: 0; }
.plans-4 .plan-pitch { min-height: 0; margin: 0 0 .9rem; }
.plans-4 .plan-price { font-size: 2.125rem; margin: 0; white-space: nowrap; }
.plans-4 .plan-price small { white-space: nowrap; }
.plan-year { margin: .3rem 0 0; }
.plan-year s { color: var(--ink-soft); }
.plan-trial { margin: .6rem 0 0; }
.plan-head > .plan-cta, .plan-head > .plan-buy, .plan-head > .plan-current, .plan-head > .plan-note { margin-top: 1rem; }
.plans-4 .plan-buy { margin-top: 1rem; }
.plans-4 .plan-buy + .plan-buy { margin-top: 1rem; }
.plan-cta .btn, .plans-4 .plan-buy .btn { width: 100%; white-space: nowrap; padding-inline: 1rem; }
.plans-4 .ticks { flex: none; margin: 0; }
.plans-4 .ticks li { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
.plan-note { font-size: .9375rem; font-weight: 600; }

/* Yearly: a banner that sits on the corner of each paid plan, saying how much cheaper the year is. */
.plan { position: relative; }
.plan-save {
  position: absolute; top: -.95rem; right: -.6rem; z-index: 2; margin: 0;
  background: var(--green); color: #fff; font: 800 .875rem/1 var(--display); letter-spacing: .01em;
  padding: .55rem .8rem .55rem .9rem; border-radius: 4px 4px 0 4px; box-shadow: 0 3px 0 rgb(0 0 0 / .18); transform: rotate(3deg);
}
.plan-save::after { content: ""; position: absolute; right: 0; bottom: -.5rem; border-style: solid; border-width: .5rem .6rem 0 0; border-color: #0b4a31 transparent transparent transparent; }
.pricing:has(input[value=year]:checked) .plan-save { display: block !important; animation: save-in .35s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes save-in { from { opacity: 0; transform: rotate(3deg) translateY(-.4rem) scale(.85); } }

@media (max-width: 72rem) { .plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } }
@media (max-width: 38rem) { .plans-4 { grid-template-columns: 1fr; } .plan-save { right: .5rem; } }

/* --- Home: signed-in visitors, and safety -------------------------------------------------- */

.hero-back { margin-top: 2rem; }
.hero-hello { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; font-size: 1.125rem; }
.hero-back form { margin: 0; }
.btn-on-dark { background: transparent; color: #fff; border-color: #fff; }
.btn-on-dark:hover { background: #fff; color: var(--navy); border-color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: .6rem; }
.i-shield { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.safe { padding: clamp(3rem, 8vw, 5.5rem) 0; border-bottom: 2px solid var(--ink); }
.safe-head h2 { max-width: 20em; }
.safe-grid { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.safe-grid li { border: 2px solid var(--line); border-radius: var(--r); padding: 1.25rem 1.25rem 1.1rem; background: var(--surface); position: relative; }
.safe-grid li::before { content: ""; display: block; width: 2.4rem; height: 2.4rem; margin-bottom: .8rem; border-radius: 50%; background: var(--mist) var(--pencil) center / 1.4rem no-repeat; }
.safe-grid h3 { font-size: 1.125rem; margin-bottom: .35em; }
.safe-grid p { color: var(--ink-soft); font-size: .9375rem; margin: 0; }
.safe-actions { margin-top: 1.75rem; }

/* --- Security page -------------------------------------------------------------------------- */

.statement-box { display: flex; gap: 1rem 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--mist); border: 2px solid var(--ink); border-radius: var(--r); padding: 1.25rem 1.5rem; margin: 2rem 0 1rem; }
.statement-box h2 { margin: 0 0 .3em !important; font-size: 1.25rem; }
.statement-box p { margin: 0; }
.statement-box > div { flex: 1 1 20rem; }
.security-page .ticks { margin-bottom: 1rem; }

/* --- What a respondent sees: the owner, the password, and "made with" ------------------------ */

.survey-owner { display: flex; gap: .85rem; align-items: flex-start; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); text-align: left; }
.avatar-m { width: 2.5rem; height: 2.5rem; font-size: 1rem; }
.survey-owner p { margin: 0; }
.survey-owner-name { font-weight: 700; }
.survey-owner-mail { font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.survey-owner-note { display: flex; gap: .4rem; align-items: flex-start; font-size: .9375rem; color: var(--ink-soft); margin-top: .25rem !important; }
.survey-owner-note .i-shield { color: var(--green); margin-top: .15rem; }
.survey-locked .survey-owner { max-width: 30rem; margin: 2.5rem auto 0; }
.unlock { max-width: 22rem; margin: 1.5rem auto 0; text-align: left; }
.lock-mark { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.lock-mark circle { fill: var(--red); stroke: none; }
.made-with { text-align: center; margin: 2.5rem auto 0; max-width: 30rem; padding: 1.5rem 1.25rem; border: 2px dashed var(--line); border-radius: var(--r); font-size: .9375rem; color: var(--ink-soft); }
.made-with p { margin: 0 0 .9rem; }
.made-with p:last-child { margin: 0; }
.made-with-brand .logo { font-size: 1.125rem; }
.survey-end .made-with { margin-top: 3rem; }
.status-lock { border-style: solid; border-color: var(--line); color: var(--ink-soft); }
.muted-label { font-weight: 500; color: var(--ink-soft); }

@media print {
  .prefs, .survey-prefs, .made-with { display: none !important; }
}
.made-with .btn { color: var(--on-ink); font-weight: 700; }
.made-with .btn:hover { color: var(--on-ink); }
.made-with .logo { color: var(--ink); }
/* --- Premium places ------------------------------------------------------------ */

.badge-premium { display: inline-block; background: var(--yellow); color: var(--ink); font-size: .75rem; font-weight: 700; padding: .15em .55em; border-radius: 4px; margin-right: .4rem; vertical-align: .1em; }
.premium-switch { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap; background: var(--surface); border: 2px dashed var(--line); border-radius: var(--r); padding: .75rem 1rem; margin-bottom: 1rem; }
.premium-switch.is-premium { border: 2px solid var(--ink); background: var(--yellow); }
.premium-switch p { margin: 0; flex: 1 1 20rem; }
.premium-switch.is-premium .muted { color: var(--ink); }

/* --- End-to-end encryption (src/e2e.php, assets/vault.js) ------------------------------- */
.i-lock { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
.survey-owner-sealed .i-lock { color: var(--green); margin-top: .15rem; }
.status-sealed { border-color: var(--green); color: var(--green); }
.check .i-lock { color: var(--green); }
.vault-lock { border: 2px solid var(--ink); border-radius: var(--r); padding: 1.5rem; margin: 1.5rem 0; background: var(--surface); max-width: 34rem; }
.vault-lock h2 { display: flex; gap: .5rem; align-items: center; font-size: 1.3125rem; }
.vault-lock h2 .i-lock { width: 1.4rem; height: 1.4rem; color: var(--green); }
.vault-lock p { color: var(--ink-soft); }
#versleuteling h3 { font-size: 1.125rem; margin: 1.75rem 0 .4em; }
.e2e-setting { border: 2px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem .4rem; margin: 0 0 1.25rem; }
.e2e-setting:has(input:checked) { border-color: var(--green); }
.e2e-row { display: flex; gap: .75rem; align-items: flex-start; justify-content: space-between; }
.e2e-row .check { margin-bottom: .5rem; }
.e2e-state { font-size: .9375rem; margin-bottom: .5rem; }
.e2e-on { color: var(--ok-ink); }
.e2e-off { color: var(--ink-soft); }
.e2e-setting:has(input:checked) .e2e-off, .e2e-setting:not(:has(input:checked)) .e2e-on { display: none; }
.info-btn { flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0; border: 2px solid var(--ink); border-radius: 50%;
  background: var(--surface); color: var(--ink); font: 800 .9375rem/1 var(--display); font-style: italic; cursor: pointer; }
.info-btn:hover { background: var(--mist); }
.info-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.info-pop { width: min(36rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; margin: auto; padding: 1.5rem 1.6rem .6rem;
  border: 2px solid var(--ink); border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: 0 12px 40px rgb(16 27 59 / .25); }
.info-pop::backdrop { background: rgb(16 27 59 / .45); }
.info-pop h3 { display: flex; gap: .5rem; align-items: center; font-size: 1.3125rem; margin-bottom: .6em; }
.info-pop h3 .i-lock { width: 1.4rem; height: 1.4rem; color: var(--green); }
.info-pop h4 { font-size: 1.0625rem; margin: 1.1em 0 .3em; }
.info-pop p, .info-pop li { font-size: .9688rem; }
.info-pop ul { padding-left: 1.2rem; }
.fingerprint { font-family: ui-monospace, Consolas, monospace; font-size: .9375rem; letter-spacing: .04em; white-space: nowrap; }
.recovery { border: 2px dashed var(--green); border-radius: var(--r); padding: 1.1rem 1.2rem; margin: 1rem 0 1.25rem; background: var(--surface); }
.recovery h3 { font-size: 1.0625rem; margin-bottom: .35em; }
.recovery p { font-size: .9375rem; }
.recovery-code { font-family: ui-monospace, Consolas, monospace; font-size: 1.125rem !important; font-weight: 700; letter-spacing: .06em; word-spacing: .2em; overflow-wrap: anywhere; user-select: all; background: var(--mist); border-radius: calc(var(--r) / 2); padding: .6rem .8rem; }
.recovery-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.panel-body details + details, .panel-body .vault-device + details { margin-top: .75rem; }
.safe-lock { display: flex; gap: 1.25rem; align-items: flex-start; margin: 2rem 0 0; padding: 1.5rem 1.6rem; border: 2px solid var(--ink); border-radius: var(--r); background: var(--surface); }
.safe-lock-icon { flex: none; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--mist); color: var(--green); }
.safe-lock-icon .i-lock { width: 1.7rem; height: 1.7rem; vertical-align: 0; }
.safe-lock h3 { font-size: 1.3125rem; margin-bottom: .35em; }
.safe-lock p { color: var(--ink-soft); margin: 0; max-width: 44em; }
.safe-lock .safe-lock-note { color: var(--green); font-weight: 700; margin-top: .6rem; }
.security-e2e { display: flex; gap: .55rem; align-items: flex-start; }
.security-e2e .i-lock { margin-top: .15rem; }
.security-e2e a { margin-left: .25rem; }
@media (max-width: 540px) { .safe-lock { flex-direction: column; gap: .8rem; padding: 1.25rem; } }
[data-vault-status]:empty { display: none; }

/* --- About: the story, with the founder beside it ---------------------------- */
.about-page { max-width: 64rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) var(--gap); display: grid; grid-template-columns: minmax(0, 40rem) 19rem; gap: clamp(2rem, 5vw, 4rem); justify-content: center; align-items: start; }
.founder { position: sticky; top: 5.5rem; margin-top: 2.25rem; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 6px 6px 0 var(--yellow); padding: 1.5rem; text-align: center; }
.founder-photo { position: relative; width: 11rem; margin: 0 auto 1rem; }
.founder-photo::before, .founder-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ink); }
.founder-photo::before { background: var(--yellow); }
/* The lower half of the ring lies over the photo, so the cut-out edge always disappears under it; the head stays in front of the upper half. */
.founder-photo::after { clip-path: inset(50% 0 0 0); pointer-events: none; }
.founder-photo img { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgb(16 27 59 / .22)); }
.founder-name { margin: 0; font: 800 1.75rem/1.1 var(--display); }
.founder-role { margin: .3rem 0 1rem; color: var(--ink-soft); font-weight: 600; }
.founder-facts { text-align: left; margin: 0 0 1.1rem; font-size: .9375rem; }
.founder-mail { margin: 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .875rem; overflow-wrap: anywhere; }
.founder-mail a { font-weight: 700; }
@media (max-width: 52rem) {
  .about-page { grid-template-columns: minmax(0, 40rem); }
  .founder { position: static; margin-top: 0; width: 100%; max-width: 24rem; justify-self: center; }
}
