/* QuietPart — minimal UI. Self-hosted type, no remote assets. */

/* Self-hosted fonts. The respondent's browser only talks to your server. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-vietnamese-400-normal.woff2') format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-cyrillic-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-vietnamese-500-normal.woff2') format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-cyrillic-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-vietnamese-600-normal.woff2') format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-cyrillic-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-vietnamese-700-normal.woff2') format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-cyrillic-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin-ext-800-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-vietnamese-800-normal.woff2') format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-cyrillic-ext-800-normal.woff2') format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

:root {
  color-scheme: light;

  /* Paper desk neutrals */
  --bg: #ded8cc;
  --bg-soft: #ebe5d8;
  --bg-tint: #f5eedf;
  --paper: #fffaf0;
  --paper-2: #fbf3e3;
  --surface: #fffdf7;
  --surface-2: #f7efdf;

  /* Ink */
  --ink: #27231c;
  --ink-muted: #6c6252;
  --ink-faint: #a79a84;
  --line: #e2d6c1;
  --line-strong: #cdbd9f;
  --rule-line: rgba(64, 73, 88, 0.055);
  --rule-margin: rgba(164, 68, 54, 0.18);

  /* Quiet markings */
  --accent: #9d392f;
  --accent-strong: #7f2c25;
  --accent-soft: #f1d6ce;
  --accent-wash: #fbebe5;

  --accent-2: #315f78;
  --accent-2-strong: #244b61;
  --accent-2-soft: #d7e4ea;
  --accent-2-wash: #edf4f6;

  --accent-3: #b39145;
  --accent-3-soft: #f3e6c6;

  --accent-4: #587b56;
  --accent-4-soft: #dbe8d5;

  --danger: #9d3328;
  --warn-bg: #fbf1d3;
  --warn-line: #b39145;
  --success-bg: #e5efe1;
  --error-bg: #f5ded8;

  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 0 rgba(39, 35, 28, 0.08);
  --shadow-sm: 0 2px 6px rgba(39, 35, 28, 0.08);
  --shadow: 0 2px 2px rgba(39, 35, 28, 0.05), 0 18px 42px rgba(39, 35, 28, 0.16);
  --shadow-lift: 0 10px 28px rgba(39, 35, 28, 0.22);

  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171715;
  --bg-soft: #20201d;
  --bg-tint: #292821;
  --paper: #25231f;
  --paper-2: #2c2923;
  --surface: #302d27;
  --surface-2: #27251f;

  --ink: #f3ead8;
  --ink-muted: #c3b7a1;
  --ink-faint: #827765;
  --line: #403a30;
  --line-strong: #5a503f;
  --rule-line: rgba(243, 234, 216, 0.045);
  --rule-margin: rgba(213, 111, 92, 0.18);

  --accent: #d06b5a;
  --accent-strong: #e48675;
  --accent-soft: #4a2e28;
  --accent-wash: #342721;

  --accent-2: #88adc0;
  --accent-2-strong: #a6c7d6;
  --accent-2-soft: #243843;
  --accent-2-wash: #202d33;

  --accent-3: #d0b062;
  --accent-3-soft: #413720;

  --accent-4: #94b48c;
  --accent-4-soft: #263523;

  --danger: #e28172;
  --warn-bg: #3a321f;
  --warn-line: #95743e;
  --success-bg: #243523;
  --error-bg: #3a2723;

  --shadow-xs: 0 1px 0 rgba(0,0,0,0.35);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.28);
  --shadow: 0 2px 3px rgba(0,0,0,0.26), 0 20px 48px rgba(0,0,0,0.36);
  --shadow-lift: 0 16px 42px rgba(0,0,0,0.48);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #171715;
    --bg-soft: #20201d;
    --bg-tint: #292821;
    --paper: #25231f;
    --paper-2: #2c2923;
    --surface: #302d27;
    --surface-2: #27251f;
    --ink: #f3ead8;
    --ink-muted: #c3b7a1;
    --ink-faint: #827765;
    --line: #403a30;
    --line-strong: #5a503f;
    --rule-line: rgba(243, 234, 216, 0.045);
    --rule-margin: rgba(213, 111, 92, 0.18);
    --accent: #d06b5a;
    --accent-strong: #e48675;
    --accent-soft: #4a2e28;
    --accent-wash: #342721;
    --accent-2: #88adc0;
    --accent-2-strong: #a6c7d6;
    --accent-2-soft: #243843;
    --accent-2-wash: #202d33;
    --accent-3: #d0b062;
    --accent-3-soft: #413720;
    --accent-4: #94b48c;
    --accent-4-soft: #263523;
    --danger: #e28172;
    --warn-bg: #3a321f;
    --warn-line: #95743e;
    --success-bg: #243523;
    --error-bg: #3a2723;
    --shadow-xs: 0 1px 0 rgba(0,0,0,0.35);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.28);
    --shadow: 0 2px 3px rgba(0,0,0,0.26), 0 20px 48px rgba(0,0,0,0.36);
    --shadow-lift: 0 16px 42px rgba(0,0,0,0.48);
  }
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.12) 0 1px, transparent 1px 56px),
    linear-gradient(0deg, rgba(39,35,28,0.05) 0 1px, transparent 1px 56px);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) body {
    background-image:
      linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 56px),
      linear-gradient(0deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 56px);
  }
}
:root[data-theme="dark"] body {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 56px),
    linear-gradient(0deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 56px);
}

a {
  color: var(--accent-2-strong);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent);
  transition: color .15s ease, border-color .15s ease;
}
a:hover { color: var(--accent-strong); border-bottom-color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--accent-soft); color: var(--accent-strong); }

/* ------------------------------------------------------------------ */
/* Header / nav                                                        */
/* ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px max(24px, calc((100vw - 1040px) / 2));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(115%) blur(8px);
  -webkit-backdrop-filter: saturate(115%) blur(8px);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}
.brand:hover { color: var(--ink); }

.brand-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  background:
    linear-gradient(135deg, transparent 36%, var(--accent) 36% 64%, transparent 64%),
    var(--paper);
  border: 2px solid var(--accent);
  border-radius: 4px;
  font-size: 0;
  box-shadow: 2px 2px 0 var(--line-strong);
}

.brand-name { font-size: 19px; letter-spacing: 0; }

.site-nav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: none;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  transition: background .18s ease, color .18s ease;
}
.site-nav a:hover { color: var(--ink); background: var(--bg-soft); }

.theme-toggle {
  margin-left: 6px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.theme-toggle:hover { background: var(--bg-soft); border-color: var(--line-strong); transform: translateY(-1px); }

@media (max-width: 700px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 16px 12px;
  }

  .brand {
    min-width: 0;
    min-height: 44px;
  }

  .brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-nav {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    min-width: 0;
    overflow-x: visible;
  }

  .site-nav a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 8px;
    text-align: center;
    white-space: nowrap;
  }

  .theme-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: 0;
  }
}

@media (max-width: 360px) {
  .site-nav a {
    padding-inline: 8px;
    font-size: 13px;
  }
}

/* ------------------------------------------------------------------ */
/* Layout                                                              */
/* ------------------------------------------------------------------ */

.container {
  position: relative;
  max-width: 1040px;
  min-height: calc(100vh - 180px);
  margin: 36px auto 0;
  padding: 56px 56px 96px;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 0 70px, var(--rule-margin) 70px 71px, transparent 71px),
    repeating-linear-gradient(0deg, transparent 0 31px, var(--rule-line) 31px 32px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.container::before,
.container::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.container::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.26), transparent 16%, transparent 84%, rgba(39,35,28,0.035)),
    linear-gradient(180deg, rgba(255,255,255,0.22), transparent 22%);
  mix-blend-mode: soft-light;
}
.container::after {
  top: 0;
  bottom: 0;
  left: 34px;
  width: 1px;
  background: color-mix(in srgb, var(--line-strong) 40%, transparent);
}
.container > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  .container {
    margin-top: 0;
    padding: 30px 18px 72px;
    border-left: none;
    border-right: none;
    box-shadow: none;
    background-image:
      linear-gradient(90deg, transparent 0 18px, var(--rule-margin) 18px 19px, transparent 19px),
      repeating-linear-gradient(0deg, transparent 0 31px, var(--rule-line) 31px 32px);
  }

  .container::after { left: 8px; }
}

h1, h2, h3 { font-family: var(--font-sans); }
h1 { font-size: 44px; line-height: 1.08; margin: 0 0 14px; letter-spacing: 0; font-weight: 800; }
h2 { font-size: 28px; line-height: 1.22; margin: 0 0 14px; letter-spacing: 0; font-weight: 700; }
h3 { font-size: 18px; margin: 0 0 10px; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 14px; }
.lede { color: var(--ink-muted); font-size: 19px; line-height: 1.55; margin: 0 0 22px; max-width: 640px; }
.muted { color: var(--ink-muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero, .hero-tight {
  position: relative;
  padding: 32px 0 20px;
  text-align: left;
}
.hero h1, .hero-tight h1 {
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 18px;
  max-width: 16ch;
  color: var(--ink);
  text-wrap: balance;
}
/* Accent the last word on the home hero with coral underline-glow */
.hero h1::after, .hero-tight h1::after { content: ""; }

.hero .lede, .hero-tight .lede {
  font-size: 19px;
  margin: 0 0 18px;
  max-width: 640px;
}
@media (max-width: 720px) {
  .hero h1, .hero-tight h1 { font-size: 38px; letter-spacing: 0; }
  .hero .lede, .hero-tight .lede { font-size: 17px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin: 0 0 18px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 20px 0; }

/* ------------------------------------------------------------------ */
/* Buttons — soft & rounded                                            */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent-2) 50%, transparent); outline-offset: 2px; }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--line-strong);
}
.btn-primary:hover {
  color: var(--paper);
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 4px 4px 0 var(--line-strong);
}
.btn-primary:active { box-shadow: 1px 1px 0 var(--line-strong); }

.btn-ghost {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--paper) 86%, var(--surface));
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-strong); }

.btn-danger {
  background: var(--danger);
  color: var(--paper);
  border-color: transparent;
  box-shadow: 3px 3px 0 var(--line-strong);
}
.btn-danger:hover { filter: brightness(0.95); color: var(--paper); }

.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 9px 14px; font-size: 13px; }

@media (max-width: 560px) {
  .cta-row .btn,
  .submit-row .btn {
    width: 100%;
  }
}

/* ------------------------------------------------------------------ */
/* Steps                                                               */
/* ------------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 22px 22px 20px;
  background: color-mix(in srgb, var(--surface) 88%, var(--paper));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.step:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

.step-num {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  border-radius: var(--radius-xs);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 12px;
  background: var(--accent-2-strong);
  box-shadow: 2px 2px 0 var(--line-strong);
}
.step:nth-child(2) .step-num { background: var(--accent-strong); box-shadow: 2px 2px 0 var(--line-strong); }
.step:nth-child(3) .step-num { background: var(--accent-4); box-shadow: 2px 2px 0 var(--line-strong); }

/* ------------------------------------------------------------------ */
/* Cards & sections                                                    */
/* ------------------------------------------------------------------ */

.card {
  background: color-mix(in srgb, var(--surface) 88%, var(--paper));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 18px 0;
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--line-strong) 45%, transparent);
}

@media (max-width: 600px) {
  .card,
  .section.tinted,
  .question,
  .result-block,
  .moderation-item {
    padding: 20px;
  }
}

.callout {
  border-left: 4px solid var(--accent-2);
  background: var(--accent-2-soft);
  border-color: transparent;
  border-radius: var(--radius);
}
.callout.warn { border-left-color: var(--warn-line); background: var(--warn-bg); }

.section {
  margin: 36px 0;
  padding: 28px 0 4px;
  border-top: 1px solid var(--line);
}
.section h2 { margin-bottom: 10px; }
.section.tinted {
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-top: 1px solid var(--line);
  margin: 36px 0;
  padding: 32px;
  border-radius: var(--radius-lg);
}

.anon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 10px;
}

/* ------------------------------------------------------------------ */
/* Check list                                                          */
/* ------------------------------------------------------------------ */

.check-list { padding-left: 0; list-style: none; margin: 0; }
.check-list li {
  position: relative;
  padding: 6px 0 6px 30px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-4-soft);
  box-shadow: inset 0 0 0 1.5px var(--accent-4);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 14px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--accent-4);
  border-bottom: 2px solid var(--accent-4);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */

.form label { display: block; margin: 16px 0; }
.form .label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 14px; letter-spacing: 0; }

.form input[type="text"],
.form input[type="number"],
.form textarea,
.form select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, var(--paper));
  font: inherit;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.form input[type="text"]::placeholder,
.form input[type="number"]::placeholder,
.form textarea::placeholder { color: var(--ink-faint); }

.form input[type="text"]:hover,
.form input[type="number"]:hover,
.form textarea:hover,
.form select:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line-strong)); }

.form input[type="text"]:focus,
.form input[type="number"]:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form input[type="radio"], .form input[type="checkbox"] { accent-color: var(--accent); transform: scale(1.1); margin-right: 4px; }

fieldset {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0;
  background: color-mix(in srgb, var(--paper-2) 82%, transparent);
}
legend { font-weight: 700; padding: 0 10px; color: var(--ink); }

.radio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 16px; }
.radio-grid label { margin: 4px 0; }
.radio-grid label.custom { grid-column: 1 / -1; }
.radio-grid input[type="number"] { width: 100px; padding: 6px 10px; }
@media (max-width: 600px) { .radio-grid { grid-template-columns: 1fr; } }

.preset-block { margin-top: 14px; }

.submit-row { margin-top: 22px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.form-inline { display: inline; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 14px 0;
  border: 1px solid transparent;
  font-weight: 600;
}
.alert-error { background: var(--error-bg); border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); }
.alert-success { background: var(--success-bg); border-color: color-mix(in srgb, var(--accent-4) 40%, transparent); color: #1f8a63; }

.link-box {
  background: var(--paper-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 6px 0 16px;
  color: var(--ink);
}

.link-box-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.link-box-copy pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform .12s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--accent-strong);
}
.icon-btn.copied {
  border-color: var(--accent-4);
  background: var(--accent-4-soft);
  color: var(--accent-4);
}
.icon-btn.copied .copy-icon rect:first-child { stroke-dasharray: 0 100; }
.copy-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 560px) {
  .link-box-copy {
    grid-template-columns: 1fr;
  }
  .link-box-copy .icon-btn {
    justify-self: end;
    width: 44px;
    height: 44px;
  }
}

/* ------------------------------------------------------------------ */
/* Survey questions                                                    */
/* ------------------------------------------------------------------ */

.question {
  margin: 26px 0;
  padding: 22px 22px 18px;
  background: color-mix(in srgb, var(--surface) 88%, var(--paper));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.qnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 13px;
  margin-right: 8px;
}
.req { color: var(--danger); margin-left: 4px; }

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 10px 0;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
  background: color-mix(in srgb, var(--surface) 92%, var(--paper));
}
.opt:hover { border-color: var(--line-strong); transform: translateX(2px); }
.opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-wash);
  box-shadow: inset 4px 0 0 var(--accent);
}

.rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 52px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  margin: 0;
  font-weight: 700;
  background: var(--surface);
  color: var(--ink);
  transition: all .15s ease;
}
.rate:hover { border-color: var(--accent-2); color: var(--accent-2-strong); transform: translateY(-1px); }
.rate:has(input:checked) {
  border-color: var(--accent-2);
  background: var(--accent-2-strong);
  color: var(--paper);
  box-shadow: 2px 2px 0 var(--line-strong);
}
.rate input[type="radio"] { width: 0; height: 0; opacity: 0; position: absolute; }

/* ------------------------------------------------------------------ */
/* Stats / results                                                     */
/* ------------------------------------------------------------------ */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0 32px;
}
.stat {
  background: color-mix(in srgb, var(--surface) 88%, var(--paper));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.stat-pulse {
  animation: statPulse .7s ease;
}
.stat-num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--accent-strong);
}
.stat:nth-child(2) .stat-num { color: var(--accent-2-strong); }
.stat:nth-child(3) .stat-num { color: var(--accent-4); }
.stat-label { color: var(--ink-muted); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 600px) { .stat-row { grid-template-columns: 1fr; } }

.live-results-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -8px 0 26px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--surface) 82%, var(--paper));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.live-toggle,
.live-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.live-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-2-strong);
}
.live-state {
  color: var(--ink-muted);
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2-strong);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2-strong) 32%, transparent);
  animation: livePulse 1.8s ease-out infinite;
}
.live-results-panel[data-live-state="loading"] .live-dot { background: var(--accent-4); }
.live-results-panel[data-live-state="paused"] .live-dot,
.live-results-panel[data-live-state="stopped"] .live-dot {
  background: var(--ink-muted);
  animation: none;
}
.live-results-panel[data-live-state="error"] .live-dot {
  background: var(--danger);
  animation: none;
}

.result-block {
  margin: 28px 0;
  padding: 24px;
  background: color-mix(in srgb, var(--surface) 88%, var(--paper));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.result-block:last-child { margin-bottom: 0; }
.result-block-new {
  animation: resultSettle .28s ease both;
}

.bars { list-style: none; padding: 0; margin: 0; }
.bars li { margin: 14px 0; }
.bar-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; font-weight: 600; }
.bar {
  background: var(--paper-2);
  border-radius: var(--radius-pill);
  height: 14px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(29, 27, 46, 0.06);
}
.bar-fill {
  background: var(--accent-strong);
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width .75s cubic-bezier(.22,1,.36,1);
  box-shadow: none;
}

.text-answers {
  list-style: none; padding: 0; margin: 10px 0 0;
  display: grid; gap: 12px;
}
.text-answers li {
  background: var(--accent-2-wash);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  white-space: pre-wrap;
  color: var(--ink);
}
.redacted-label {
  display: inline-flex;
  margin: 0 8px 4px 0;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-4-soft);
  color: var(--accent-4);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2-strong) 34%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes statPulse {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-2px) scale(1.025); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes resultSettle {
  from { opacity: .72; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot,
  .stat-pulse,
  .result-block-new {
    animation: none;
  }
  .bar-fill {
    transition: none;
  }
}

.kv { list-style: none; padding: 0; margin: 0; }
.kv li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.kv li:last-child { border-bottom: none; }
.kv li span { color: var(--ink-muted); }

/* ------------------------------------------------------------------ */
/* Create card                                                         */
/* ------------------------------------------------------------------ */

.create-card {
  margin-top: 26px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 92%, var(--paper));
  box-shadow: var(--shadow);
  position: relative;
}
.create-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 18px, var(--accent-2) 18px 36px, var(--accent-3) 36px 54px);
}

.create-card-head {
  padding: 26px 30px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.create-card-head h2 { margin-bottom: 4px; color: var(--ink); font-size: 22px; letter-spacing: 0; }

.create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding: 22px 30px 8px;
}
@media (max-width: 800px) {
  .create-grid { grid-template-columns: 1fr; gap: 8px; padding: 18px 22px 4px; }
}
.create-main > label { margin: 12px 0; }
.create-side fieldset { margin: 12px 0; padding: 14px 16px; background: var(--paper-2); }
.create-side fieldset legend {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  font-weight: 800;
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: var(--radius-xs);
}
.create-side label { display: block; margin: 7px 0; font-size: 14px; }
.create-side .inline-custom { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.create-side .inline-custom input[type="number"] { width: 70px; padding: 6px 10px; border-radius: var(--radius-sm); }

.radio-grid input[type="number"],
.create-side .inline-custom input[type="number"] {
  min-height: 40px;
}

@media (max-width: 600px) {
  .radio-grid input[type="number"],
  .create-side .inline-custom input[type="number"] {
    min-height: 44px;
  }
}

.side-note {
  background: var(--accent-2-wash);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-top: 12px;
  border-left: 3px solid var(--accent-2);
}
.side-note p { margin: 0; font-size: 13px; line-height: 1.55; }

.preset-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border: none;
  padding: 0;
  margin: 10px 0 16px;
  background: transparent;
}
.preset-picker legend { width: 100%; font-weight: 700; margin-bottom: 10px; padding: 0; background: transparent; color: var(--ink); font-size: 14px; }
@media (max-width: 640px) { .preset-picker { grid-template-columns: 1fr; } }
.preset-picker .tile {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  background: color-mix(in srgb, var(--surface) 92%, var(--paper));
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.preset-picker .tile:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.preset-picker .tile input[type="radio"] { margin-top: 3px; flex-shrink: 0; }
.preset-picker .tile:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-wash);
  box-shadow: inset 4px 0 0 var(--accent);
}
.preset-picker .tile-body { display: flex; flex-direction: column; gap: 4px; }
.preset-picker .tile-body strong { font-weight: 700; }

.create-card .submit-row {
  padding: 22px 30px 26px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  background: var(--paper-2);
}

@media (max-width: 600px) {
  .create-card-head,
  .create-grid,
  .create-card .submit-row {
    padding-inline: 20px;
  }
}

.question-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.preview-question {
  box-shadow: none;
  margin: 14px 0;
}

.confirm-save {
  display: block;
  margin-top: 16px;
  font-weight: 700;
}

a[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.moderation-list {
  display: grid;
  gap: 16px;
}

.moderation-item {
  background: color-mix(in srgb, var(--surface) 88%, var(--paper));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 18px;
}

.moderation-item label {
  display: block;
  margin: 12px 0;
}

.moderation-item textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
}

.text-answer-preview {
  background: var(--accent-2-wash);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  white-space: pre-wrap;
  margin: 8px 0 12px;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  max-width: 1040px;
  margin: 48px auto 28px;
  padding: 22px 24px;
  color: var(--ink-muted);
  font-size: 13.5px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer p { margin: 0; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
}

.cookie-notice {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 24px rgba(39, 35, 28, 0.18);
}
.cookie-notice p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
}
.cookie-notice strong { color: var(--ink); }
.cookie-notice-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.cookie-notice-actions a {
  color: var(--accent-2-strong);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
html[data-cookie-notice="dismissed"] .cookie-notice {
  display: none;
}

@media (max-width: 600px) {
  .site-footer {
    margin-top: 32px;
    padding: 18px 16px;
  }
  .cookie-notice {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
  .cookie-notice-actions {
    justify-content: space-between;
  }
}

code {
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--accent-strong);
}
pre { color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Trust bar                                                           */
/* ------------------------------------------------------------------ */

.trust-bar {
  background: var(--paper-2);
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line-strong);
  position: relative;
  z-index: 9;
}
.trust-bar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12.5px;
  line-height: 1.4;
}
.trust-brand {
  font-weight: 800;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-brand::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.trust-sep { color: var(--line-strong); }
.trust-item { color: var(--ink-muted); }
.trust-item.trust-warn { color: var(--danger); cursor: help; font-weight: 600; }

.trust-more {
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  padding: 4px 14px;
  min-height: 32px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s ease;
}
.trust-more:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }

@media (max-width: 600px) {
  .trust-bar-inner { padding: 8px 16px; }
  .trust-more {
    margin-left: 0;
    margin-top: 4px;
    min-height: 44px;
    padding: 8px 16px;
  }
}

/* ------------------------------------------------------------------ */
/* Modals                                                              */
/* ------------------------------------------------------------------ */

.qp-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 580px;
  width: calc(100% - 32px);
  border-radius: var(--radius-lg);
  color: var(--ink);
}
.qp-modal::backdrop {
  background: rgba(29, 27, 46, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.qp-modal-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  animation: modal-pop .25s cubic-bezier(.2,.7,.3,1.2);
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.qp-modal-head {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.qp-modal-head h2 { margin: 8px 0 0; color: var(--ink); }

.qp-modal-body { padding: 20px 28px 8px; }
.qp-modal-body p { margin: 10px 0 14px; }

.qp-modal-foot {
  padding: 16px 28px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------------ */
/* Print                                                               */
/* ------------------------------------------------------------------ */

/* ------------------------------------------------------------------ */
/* Minimal pass                                                        */
/* ------------------------------------------------------------------ */

:root {
  color-scheme: light;
  --bg: #f6f6f3;
  --bg-soft: #eeeeea;
  --bg-tint: #f8f8f5;
  --paper: #ffffff;
  --paper-2: #f8f8f5;
  --surface: #ffffff;
  --surface-2: #f8f8f5;
  --ink: #171717;
  --ink-muted: #61615d;
  --ink-faint: #999991;
  --line: #dfdfd7;
  --line-strong: #c7c7bd;
  --accent: #171717;
  --accent-strong: #171717;
  --accent-soft: #ecece7;
  --accent-wash: #f8f8f5;
  --accent-2: #3f5f72;
  --accent-2-strong: #284a5f;
  --accent-2-soft: #e6ecef;
  --accent-2-wash: #f3f6f7;
  --accent-3: #8a743d;
  --accent-3-soft: #f2ead7;
  --accent-4: #477052;
  --accent-4-soft: #e4ede6;
  --danger: #a7352f;
  --warn-bg: #fbf4dc;
  --warn-line: #c2a44b;
  --success-bg: #e6f0e8;
  --error-bg: #f7e3e0;
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 6px;
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lift: 0 20px 70px rgba(0,0,0,0.22);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111111;
  --bg-soft: #181818;
  --bg-tint: #151515;
  --paper: #151515;
  --paper-2: #191919;
  --surface: #1c1c1c;
  --surface-2: #191919;
  --ink: #eeeeea;
  --ink-muted: #b8b8b0;
  --ink-faint: #777771;
  --line: #30302d;
  --line-strong: #4a4a44;
  --accent: #eeeeea;
  --accent-strong: #ffffff;
  --accent-soft: #282824;
  --accent-wash: #1b1b19;
  --accent-2: #9db5c2;
  --accent-2-strong: #c3d4dc;
  --accent-2-soft: #223039;
  --accent-2-wash: #172025;
  --accent-3: #d3bf79;
  --accent-3-soft: #332d1b;
  --accent-4: #9bbd9e;
  --accent-4-soft: #1f2b20;
  --danger: #e6857d;
  --warn-bg: #302b1b;
  --warn-line: #8f7b3f;
  --success-bg: #202d22;
  --error-bg: #32211f;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #111111;
    --bg-soft: #181818;
    --bg-tint: #151515;
    --paper: #151515;
    --paper-2: #191919;
    --surface: #1c1c1c;
    --surface-2: #191919;
    --ink: #eeeeea;
    --ink-muted: #b8b8b0;
    --ink-faint: #777771;
    --line: #30302d;
    --line-strong: #4a4a44;
    --accent: #eeeeea;
    --accent-strong: #ffffff;
    --accent-soft: #282824;
    --accent-wash: #1b1b19;
    --accent-2: #9db5c2;
    --accent-2-strong: #c3d4dc;
    --accent-2-soft: #223039;
    --accent-2-wash: #172025;
    --accent-3: #d3bf79;
    --accent-3-soft: #332d1b;
    --accent-4: #9bbd9e;
    --accent-4-soft: #1f2b20;
    --danger: #e6857d;
    --warn-bg: #302b1b;
    --warn-line: #8f7b3f;
    --success-bg: #202d22;
    --error-bg: #32211f;
  }
}

body,
:root[data-theme="dark"] body {
  background: var(--bg);
  background-image: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) body { background-image: none; }
}

.site-header {
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand-mark {
  width: 18px;
  height: 18px;
  background: var(--ink);
  border: none;
  border-radius: var(--radius-xs);
  box-shadow: none;
}

.site-nav a,
.theme-toggle {
  border-radius: var(--radius);
}

.site-nav a:hover,
.theme-toggle:hover {
  background: var(--bg-soft);
  transform: none;
}

.container {
  max-width: 960px;
  min-height: auto;
  margin: 0 auto;
  padding: 48px 24px 88px;
  background: transparent;
  background-image: none;
  border: none;
  box-shadow: none;
}

.container::before,
.container::after {
  display: none;
}

h1 {
  font-size: clamp(34px, 6vw, 54px);
}

h2 {
  font-size: clamp(24px, 4vw, 32px);
}

.hero,
.hero-tight {
  padding: 20px 0 18px;
}

.hero h1,
.hero-tight h1 {
  max-width: 18ch;
  font-size: clamp(40px, 8vw, 68px);
}

.card,
.step,
.question,
.stat,
.result-block,
.moderation-item,
.create-card,
.qp-modal-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.create-card {
  overflow: visible;
}

.create-card::before {
  display: none;
}

.create-card-head,
.create-card .submit-row,
.qp-modal-head,
.qp-modal-foot,
fieldset,
.create-side fieldset {
  background: var(--surface-2);
}

.section {
  border-top: 1px solid var(--line);
}

.section.tinted {
  background: var(--surface);
  border: 1px solid var(--line);
}

.btn,
.icon-btn,
.trust-more {
  border-radius: var(--radius);
  box-shadow: none;
}

.btn-primary,
.btn-danger {
  box-shadow: none;
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-2-strong);
  border-color: var(--accent-2-strong);
  color: var(--bg);
}

.btn-ghost {
  background: var(--surface);
}

.form input[type="text"],
.form input[type="number"],
.form textarea,
.form select,
.moderation-item textarea {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.form input[type="text"]:focus,
.form input[type="number"]:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--accent-2-strong);
  box-shadow: 0 0 0 3px var(--accent-2-soft);
}

.preset-picker .tile,
.opt,
.rate {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.preset-picker .tile:has(input:checked),
.opt:has(input:checked) {
  background: var(--surface-2);
  border-color: var(--accent-2-strong);
  box-shadow: inset 3px 0 0 var(--accent-2-strong);
}

.rate:has(input:checked) {
  background: var(--accent-2-strong);
  border-color: var(--accent-2-strong);
  color: var(--bg);
  box-shadow: none;
}

.step-num,
.qnum,
.anon-badge,
.create-side fieldset legend,
.redacted-label {
  border-radius: var(--radius-xs);
  box-shadow: none;
}

.step-num {
  background: var(--ink);
  color: var(--bg);
}

.step:nth-child(2) .step-num,
.step:nth-child(3) .step-num {
  background: var(--ink);
}

.stat-num,
.stat:nth-child(2) .stat-num,
.stat:nth-child(3) .stat-num {
  color: var(--ink);
}

.bar-fill {
  background: var(--ink);
}

.text-answers li,
.text-answer-preview,
.side-note {
  background: var(--surface-2);
  border-left-color: var(--line-strong);
}

.trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.trust-brand {
  color: var(--ink);
}

.trust-brand::before {
  background: var(--ink);
  box-shadow: none;
}

@media (max-width: 600px) {
  .container {
    padding: 34px 18px 72px;
    background-image: none;
  }

  .hero h1,
  .hero-tight h1 {
    font-size: 40px;
  }
}

@media print {
  body { background: #fff; }
  .site-header, .trust-bar, .site-footer, .theme-toggle, .trust-more, .cookie-notice { display: none; }
}
