/* ============================================================
   Inter-Team Coopetition · Liquid Glass Design System
   Mobile-first. Light/Dark via prefers-color-scheme.
   ============================================================ */

/* ============ TOKENS · LIGHT ============ */
:root {
  /* Ink scale */
  --ink: #0A0A0F;
  --ink-soft: #3A3A40;
  --ink-faint: #8E8E93;

  /* Glass body */
  --glass-bg: rgba(255, 255, 255, 0.52);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-bg-soft: rgba(255, 255, 255, 0.36);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-top-sheen: rgba(255, 255, 255, 0.95);
  --glass-bottom-tint: rgba(0, 0, 0, 0.05);

  /* Selected (deep ink with glass character) */
  --selected-bg: rgba(8, 8, 12, 0.94);
  --selected-border: rgba(0, 0, 0, 0.7);
  --selected-sheen: rgba(255, 255, 255, 0.22);
  --selected-dim: rgba(0, 0, 0, 0.30);
  --selected-on: #FBF8F2;

  /* Lines */
  --line: rgba(60, 60, 67, 0.10);
  --line-strong: rgba(60, 60, 67, 0.16);

  /* Aurora */
  --aurora-1: #FF8FA3;
  --aurora-2: #6FB1FF;
  --aurora-3: #B68FFF;
  --aurora-4: #FFD16F;
  --aurora-5: #6FE3D3;
  --aurora-base-a: #FBF5EE;
  --aurora-base-b: #ECE8E0;

  /* Slider thumb glass */
  --thumb-bg:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,1.0) 0%, rgba(255,255,255,0.55) 40%, rgba(255,255,255,0.18) 75%),
    rgba(255, 255, 255, 0.58);
  --thumb-border: rgba(255, 255, 255, 0.95);
  --thumb-shadow:
    0 6px 14px rgba(20,20,40,0.20),
    0 1px 2px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(0,0,0,0.05);

  /* Drop shadow scale */
  --shadow-card: 0 14px 40px rgba(20, 20, 40, 0.07);
  --shadow-elev: 0 20px 50px rgba(20, 20, 40, 0.12);

  /* Status colors (used sparingly in admin) */
  --status-draft: #B68FFF;
  --status-live: #6FE3D3;
  --status-closed: #8E8E93;

  /* Motion */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 360ms;

  /* Layout */
  --container-max: 720px;
  --container-mobile-max: 414px;
  --thumb-radius: 14px;  /* half of 28px thumb */
}

/* ============ TOKENS · DARK ============ */
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] { color-scheme: dark; }
  html[data-theme="auto"] {
    --ink: #F5F5F7;
    --ink-soft: #C7C7CC;
    --ink-faint: #8E8E93;
    --glass-bg: rgba(28, 28, 32, 0.56);
    --glass-bg-strong: rgba(36, 36, 42, 0.74);
    --glass-bg-soft: rgba(22, 22, 26, 0.40);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-top-sheen: rgba(255, 255, 255, 0.28);
    --glass-bottom-tint: rgba(0, 0, 0, 0.35);
    --selected-bg: rgba(245, 245, 247, 0.22);
    --selected-border: rgba(255, 255, 255, 0.42);
    --selected-sheen: rgba(255, 255, 255, 0.50);
    --selected-dim: rgba(0, 0, 0, 0.10);
    --selected-on: #FFFFFF;
    --line: rgba(255, 255, 255, 0.10);
    --line-strong: rgba(255, 255, 255, 0.18);
    --aurora-1: #E64477; --aurora-2: #2D6FE0; --aurora-3: #7E3DD9;
    --aurora-4: #D9851F; --aurora-5: #1FB3A0;
    --aurora-base-a: #08080E; --aurora-base-b: #10101A;
    --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.45);
    --shadow-elev: 0 22px 55px rgba(0, 0, 0, 0.6);
    --thumb-bg:
      radial-gradient(circle at 32% 24%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.20) 40%, rgba(0,0,0,0) 75%),
      rgba(70, 70, 80, 0.75);
    --thumb-border: rgba(255, 255, 255, 0.35);
    --thumb-shadow:
      0 6px 16px rgba(0,0,0,0.55),
      0 1px 2px rgba(0,0,0,0.30),
      inset 0 1px 0 rgba(255,255,255,0.38),
      inset 0 -1px 0 rgba(0,0,0,0.30);
  }
}

/* Manual theme overrides */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #F5F5F7;
  --ink-soft: #C7C7CC;
  --ink-faint: #8E8E93;
  --glass-bg: rgba(28, 28, 32, 0.56);
  --glass-bg-strong: rgba(36, 36, 42, 0.74);
  --glass-bg-soft: rgba(22, 22, 26, 0.40);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-top-sheen: rgba(255, 255, 255, 0.28);
  --glass-bottom-tint: rgba(0, 0, 0, 0.35);
  --selected-bg: rgba(245, 245, 247, 0.22);
  --selected-border: rgba(255, 255, 255, 0.42);
  --selected-sheen: rgba(255, 255, 255, 0.50);
  --selected-dim: rgba(0, 0, 0, 0.10);
  --selected-on: #FFFFFF;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --aurora-1: #E64477; --aurora-2: #2D6FE0; --aurora-3: #7E3DD9;
  --aurora-4: #D9851F; --aurora-5: #1FB3A0;
  --aurora-base-a: #08080E; --aurora-base-b: #10101A;
  --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-elev: 0 22px 55px rgba(0, 0, 0, 0.6);
  --thumb-bg:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.20) 40%, rgba(0,0,0,0) 75%),
    rgba(70, 70, 80, 0.75);
  --thumb-border: rgba(255, 255, 255, 0.35);
  --thumb-shadow:
    0 6px 16px rgba(0,0,0,0.55),
    0 1px 2px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.38),
    inset 0 -1px 0 rgba(0,0,0,0.30);
}
html[data-theme="light"] { color-scheme: light; }

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background: var(--aurora-base-a);
  overflow-x: hidden;
  transition: background 0.4s var(--ease-out-quart), color 0.3s var(--ease-out-quart);
}

/* === AURORA backdrop === */
body::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 8%, var(--aurora-1) 0%, transparent 28%),
    radial-gradient(circle at 88% 14%, var(--aurora-2) 0%, transparent 30%),
    radial-gradient(circle at 76% 78%, var(--aurora-3) 0%, transparent 28%),
    radial-gradient(circle at 18% 92%, var(--aurora-4) 0%, transparent 26%),
    radial-gradient(circle at 52% 50%, var(--aurora-5) 0%, transparent 22%),
    linear-gradient(180deg, var(--aurora-base-a) 0%, var(--aurora-base-b) 100%);
  filter: blur(70px) saturate(150%);
  opacity: 0.9;
  pointer-events: none;
  animation: aurora-drift 30s var(--ease-in-out-quart) infinite alternate;
}
@keyframes aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(2%, -2%) scale(1.04); }
  100% { transform: translate(-2%, 2%) scale(1); }
}

a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; }

/* ============ STAGGER REVEAL ============ */
.reveal { opacity: 0; transform: translateY(16px); animation: reveal 700ms var(--ease-out-expo) forwards; }
.reveal:nth-child(1) { animation-delay: 0ms; }
.reveal:nth-child(2) { animation-delay: 60ms; }
.reveal:nth-child(3) { animation-delay: 120ms; }
.reveal:nth-child(4) { animation-delay: 180ms; }
.reveal:nth-child(5) { animation-delay: 240ms; }
.reveal:nth-child(6) { animation-delay: 300ms; }
.reveal:nth-child(7) { animation-delay: 360ms; }
.reveal:nth-child(8) { animation-delay: 420ms; }
.reveal:nth-child(9) { animation-delay: 480ms; }
.reveal:nth-child(10) { animation-delay: 540ms; }
.reveal:nth-child(11) { animation-delay: 600ms; }
.reveal:nth-child(12) { animation-delay: 660ms; }
.reveal:nth-child(13) { animation-delay: 720ms; }
.reveal:nth-child(14) { animation-delay: 780ms; }
.reveal:nth-child(15) { animation-delay: 840ms; }
.reveal:nth-child(16) { animation-delay: 900ms; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .reveal, body::before { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ============ LAYOUT ============ */
.page { max-width: var(--container-mobile-max); margin: 0 auto; padding: 60px 0 80px; position: relative; z-index: 1; }
@media (min-width: 768px) { .page { max-width: 560px; padding: 80px 0 100px; } }
@media (min-width: 1024px) { .page { max-width: 640px; } }

/* ============ GLASS PRIMITIVE ============ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(40px) saturate(220%);
  -webkit-backdrop-filter: blur(40px) saturate(220%);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 var(--glass-top-sheen),
    inset 0 -1px 0 var(--glass-bottom-tint);
}
.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(50px) saturate(240%);
  -webkit-backdrop-filter: blur(50px) saturate(240%);
}

/* ============ TOP BAR ============ */
.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  margin: 0 16px 24px;
  padding: 12px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar .topbar-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}
.topbar .progress {
  flex: 1;
  height: 4px;
  background: var(--line-strong);
  border-radius: 99px;
  overflow: hidden;
}
.topbar .progress-fill {
  width: 0%;
  height: 100%;
  background: var(--ink);
  border-radius: 99px;
  transition: width 500ms var(--ease-out-expo);
}
.topbar .num {
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ============ HERO / TITLE BLOCK ============ */
.hero, .section-block {
  margin: 0 16px 24px;
  padding: 28px 24px 24px;
}
.hero .eyebrow, .section-block .eyebrow {
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 12px; font-weight: 700;
}
.hero h1, .section-block h1 {
  font-size: 32px; font-weight: 700;
  line-height: 1.04; letter-spacing: -0.025em;
  margin: 0 0 14px; color: var(--ink);
}
@media (min-width: 768px) {
  .hero h1, .section-block h1 { font-size: 36px; }
}
.hero p, .section-block p {
  font-size: 15.5px; color: var(--ink-soft); margin: 0 0 16px;
}
.hero .meta {
  display: flex; gap: 16px;
  font-size: 12px; color: var(--ink-faint);
  margin: 18px 0 22px; font-weight: 500;
}
.hero .meta span::before { content: '·'; margin-right: 8px; opacity: 0.6; }
.hero .meta span:first-child::before { content: ''; margin: 0; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block; padding: 16px 22px;
  background: var(--selected-bg);
  backdrop-filter: blur(28px) saturate(220%);
  -webkit-backdrop-filter: blur(28px) saturate(220%);
  color: var(--selected-on);
  border-radius: 18px;
  font-size: 15.5px; font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--selected-border);
  cursor: pointer;
  text-align: center; font-family: inherit;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.18),
    inset 0 1px 0 var(--selected-sheen),
    inset 0 -1px 0 var(--selected-dim);
  transition:
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out-expo);
}
.btn-block { display: block; width: 100%; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-elev), inset 0 1px 0 var(--selected-sheen), inset 0 -1px 0 var(--selected-dim); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn[disabled], .btn.is-disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: var(--glass-bg-soft);
  color: var(--ink);
  border-color: var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-top-sheen);
}
.btn-ghost:hover { background: var(--glass-bg); }

.btn-danger { /* used for destructive admin actions */
  background: rgba(220, 60, 60, 0.92);
  border-color: rgba(150, 20, 20, 0.6);
  color: #FFF8F5;
}

/* ============ QUESTION CARD ============ */
.q-card { margin: 0 16px 18px; padding: 24px 22px; }
.q-num {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.q-title {
  font-size: 18px; font-weight: 600;
  line-height: 1.32; letter-spacing: -0.012em;
  margin: 0 0 6px; color: var(--ink);
}
@media (min-width: 768px) { .q-title { font-size: 19.5px; } }
.q-desc { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 20px; }
.q-required { color: var(--ink); font-weight: 700; }
.q-card.is-invalid {
  border-color: rgba(220, 60, 60, 0.55);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 var(--glass-top-sheen),
    inset 0 -1px 0 var(--glass-bottom-tint),
    0 0 0 3px rgba(220, 60, 60, 0.12);
}
.q-error {
  font-size: 12.5px; color: rgba(220, 60, 60, 0.95);
  margin-top: 12px; font-weight: 500;
}

/* ============ PILLS (single/multi choice) ============ */
.pills { display: flex; flex-direction: column; gap: 9px; }
.pill {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--glass-bg-soft);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  cursor: pointer;
  font-size: 15px; color: var(--ink);
  min-height: 52px;
  transition:
    transform var(--dur-base) var(--ease-spring),
    background var(--dur-base) var(--ease-out-expo),
    border-color var(--dur-base) var(--ease-out-expo),
    color var(--dur-base) var(--ease-out-expo),
    box-shadow var(--dur-base) var(--ease-out-expo);
  box-shadow: inset 0 1px 0 var(--glass-top-sheen);
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
@media (hover: hover) {
  .pill:hover { transform: translateY(-1px); }
}
.pill:active { transform: scale(0.98); }
.pill .dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--ink-soft); flex-shrink: 0;
  position: relative; background: transparent;
  transition: all var(--dur-base) var(--ease-out-expo);
}
.pill.multi .dot { border-radius: 7px; }
.pill.selected {
  background: var(--selected-bg);
  backdrop-filter: blur(28px) saturate(220%);
  -webkit-backdrop-filter: blur(28px) saturate(220%);
  color: var(--selected-on);
  border-color: var(--selected-border);
  box-shadow:
    0 6px 18px rgba(0,0,0,0.22),
    inset 0 1px 0 var(--selected-sheen),
    inset 0 -1px 0 var(--selected-dim);
}
.pill.selected .dot { background: var(--selected-on); border-color: var(--selected-on); }
.pill.selected .dot::after {
  content: '';
  position: absolute; left: 6px; top: 3px;
  width: 6px; height: 11px;
  border: solid #0A0A0F;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
  animation: pop-check 320ms var(--ease-spring);
}
@keyframes pop-check { 0% { transform: rotate(45deg) scale(0); opacity: 0; } 100% { transform: rotate(45deg) scale(1); opacity: 1; } }
.pill.just-selected { animation: pill-pop 380ms var(--ease-spring); }
@keyframes pill-pop { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.035); } }

/* ============ Yes/Neutral/No ============ */
.ynn { display: flex; gap: 8px; }
.ynn .pill { flex: 1; justify-content: center; font-weight: 500; padding: 16px 8px; }
.ynn .pill .dot { display: none; }

/* ============ Likert Pills ============ */
.likert-pills { display: flex; gap: 6px; margin-bottom: 12px; }
.likert-pill {
  flex: 1; min-height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg-soft);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  font-size: 16px; font-weight: 600;
  cursor: pointer; color: var(--ink);
  transition:
    transform var(--dur-base) var(--ease-spring),
    background var(--dur-base) var(--ease-out-expo),
    border-color var(--dur-base) var(--ease-out-expo),
    color var(--dur-base) var(--ease-out-expo);
  box-shadow: inset 0 1px 0 var(--glass-top-sheen);
  user-select: none;
}
@media (hover: hover) { .likert-pill:hover { transform: translateY(-1px); } }
.likert-pill:active { transform: scale(0.96); }
.likert-pill.selected {
  background: var(--selected-bg);
  backdrop-filter: blur(28px) saturate(220%);
  color: var(--selected-on); border-color: var(--selected-border);
  box-shadow: 0 6px 18px rgba(0,0,0,0.22), inset 0 1px 0 var(--selected-sheen), inset 0 -1px 0 var(--selected-dim);
}
.likert-pill.just-selected { animation: pill-pop 380ms var(--ease-spring); }
.scale-labels {
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.03em;
  margin-top: 10px; font-weight: 500;
}

/* ============ SLIDER ============ */
.slider-wrap { padding: 22px 0 4px; }
.slider-bubble-row {
  position: relative; height: 40px;
  margin: 0 var(--thumb-radius);
}
.slider-bubble {
  position: absolute; transform: translateX(-50%);
  background: var(--selected-bg);
  backdrop-filter: blur(20px) saturate(220%);
  -webkit-backdrop-filter: blur(20px) saturate(220%);
  color: var(--selected-on);
  padding: 5px 11px; border-radius: 11px;
  font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--selected-border);
  box-shadow:
    0 8px 18px rgba(0,0,0,0.22),
    inset 0 1px 0 var(--selected-sheen),
    inset 0 -1px 0 var(--selected-dim);
  transition: left 80ms var(--ease-out-quart);
  pointer-events: none;
  min-width: 28px; text-align: center;
  letter-spacing: 0.02em;
  bottom: 4px;
}
.slider-bubble::after {
  content: '';
  position: absolute; left: 50%; bottom: -3px;
  width: 8px; height: 8px;
  background: var(--selected-bg);
  border-right: 1px solid var(--selected-border);
  border-bottom: 1px solid var(--selected-border);
  transform: translateX(-50%) rotate(45deg);
}
.slider-track-bg {
  height: 6px; border-radius: 99px;
  background: var(--line-strong);
  position: relative; margin: 0 var(--thumb-radius);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.slider-track-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--ink); border-radius: 99px;
  transition: width 80ms var(--ease-out-quart);
}
.slider-input {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; background: transparent;
  position: relative; z-index: 2; margin-top: -25px;
  touch-action: manipulation;
  cursor: grab;
}
.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--thumb-bg);
  backdrop-filter: blur(16px) saturate(220%);
  border: 1px solid var(--thumb-border);
  box-shadow: var(--thumb-shadow);
  cursor: grab;
  transition: transform 140ms var(--ease-spring);
}
.slider-input::-moz-range-thumb {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--thumb-bg);
  border: 1px solid var(--thumb-border);
  box-shadow: var(--thumb-shadow);
  cursor: grab;
}
.slider-input:hover::-webkit-slider-thumb { transform: scale(1.08); }
.slider-input:active::-webkit-slider-thumb { transform: scale(1.18); cursor: grabbing; }
.slider-input:focus-visible::-webkit-slider-thumb {
  box-shadow: var(--thumb-shadow), 0 0 0 3px rgba(0, 122, 255, 0.35);
}
.slider-ticks {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  margin: 14px var(--thumb-radius) 4px; font-weight: 500;
}
.slider-caption {
  text-align: center; font-size: 13px; font-weight: 600; color: var(--ink);
  margin: 14px var(--thumb-radius) 0; letter-spacing: -0.005em;
  min-height: 20px;
  transition: opacity 220ms var(--ease-out-expo);
}
.slider-poles {
  display: flex; justify-content: space-between;
  margin: 10px var(--thumb-radius) 0;
  font-size: 11.5px; color: var(--ink-faint); font-weight: 500;
  letter-spacing: 0.03em;
}

/* ============ TEXTAREA / INPUT ============ */
.textarea, .input {
  width: 100%;
  padding: 14px 16px;
  background: var(--glass-bg-soft);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  font-family: inherit; font-size: 15px;
  color: var(--ink); resize: vertical;
  transition: border-color var(--dur-base) var(--ease-out-expo), background var(--dur-base) var(--ease-out-expo);
  box-shadow: inset 0 1px 0 var(--glass-top-sheen);
}
.textarea { min-height: 130px; }
.textarea::placeholder, .input::placeholder { color: var(--ink-faint); }
.textarea:focus, .input:focus { outline: none; border-color: var(--ink); background: var(--glass-bg); }
.char-count {
  font-size: 11.5px; color: var(--ink-faint);
  margin-top: 6px; text-align: right;
  font-variant-numeric: tabular-nums; font-weight: 500;
}

/* ============ CASE STUDY ============ */
.case-body {
  font-size: 15.5px; line-height: 1.65;
  color: var(--ink);
  white-space: pre-wrap;
}
.case-body p { margin: 0 0 1em; }
.case-body p:last-child { margin-bottom: 0; }

/* ============ SUBMIT CARD ============ */
.submit-card { padding: 26px 22px; text-align: center; }
.submit-card .privacy { font-size: 12px; color: var(--ink-faint); margin: 14px 0 0; line-height: 1.5; }

/* ============ SECTION TITLE ============ */
.section-title {
  text-align: center; font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ink-faint); font-weight: 700;
  margin: 28px 16px 12px;
}

/* ============ DONE PAGE ============ */
.done-icon {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 26px;
  background: var(--selected-bg);
  backdrop-filter: blur(20px) saturate(220%);
  border: 1px solid var(--selected-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18), inset 0 1px 0 var(--selected-sheen);
  position: relative;
  animation: done-rise 700ms var(--ease-spring) both;
}
@keyframes done-rise { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.done-icon::after {
  content: ''; position: absolute;
  left: 50%; top: 50%; width: 16px; height: 30px;
  border: solid var(--selected-on);
  border-width: 0 3px 3px 0;
  transform: translate(-60%, -65%) rotate(45deg);
  animation: pop-check 500ms 220ms var(--ease-spring) backwards;
}

/* ============ FOOTER (subtle) ============ */
.page-footer {
  text-align: center; font-size: 11px; color: var(--ink-faint);
  margin: 50px 16px 0; opacity: 0.7; letter-spacing: 0.04em;
}

/* ============ Misc ============ */
.text-center { text-align: center; }
.spacer-sm { height: 12px; }
.spacer-md { height: 24px; }
.spacer-lg { height: 48px; }
