/* ============================================================
   Validation Hub — light, minimal, premium
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@1&display=swap');

:root {
  --bg: #FAFAF8;
  --bg-2: #FFFFFF;
  --surface: rgba(0, 0, 0, 0.02);
  --surface-hover: rgba(0, 0, 0, 0.035);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --border-faint: rgba(0, 0, 0, 0.05);

  --text: #09090B;
  --text-2: #52525B;
  --text-3: #71717A;
  --text-4: #A1A1AA;

  /* Accents */
  --accent: #09090B;
  --accent-soft: rgba(9, 9, 11, 0.06);
  --on-accent: #FFFFFF;

  --blue: #2563EB;
  --blue-soft: rgba(37, 99, 235, 0.08);
  --purple: #7C3AED;
  --purple-soft: rgba(124, 58, 237, 0.08);
  --emerald: #059669;
  --emerald-soft: rgba(5, 150, 105, 0.08);
  --orange: #EA580C;
  --orange-soft: rgba(234, 88, 12, 0.08);

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
}

body[data-accent="blue"]    { --accent: var(--blue);    --accent-soft: var(--blue-soft); }
body[data-accent="purple"]  { --accent: var(--purple);  --accent-soft: var(--purple-soft); }
body[data-accent="emerald"] { --accent: var(--emerald); --accent-soft: var(--emerald-soft); }
body[data-accent="orange"]  { --accent: var(--orange);  --accent-soft: var(--orange-soft); }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--text); color: var(--bg); }

/* ============================================================
   Type
   ============================================================ */

h1, h2, h3 { margin: 0; font-weight: 500; color: var(--text); letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; }
h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 17px; line-height: 1.3; letter-spacing: -0.015em; }

p { margin: 0; color: var(--text-2); text-wrap: pretty; }

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

.mono { font-family: var(--font-mono); }
.t-2 { color: var(--text-2); }
.t-3 { color: var(--text-3); }

.lead {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 52ch;
  text-wrap: pretty;
}

/* ============================================================
   Layout
   ============================================================ */

.page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px clamp(28px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}

/* Premium light mesh background — soft layered orbs with grain */
body {
  background:
    radial-gradient(1200px 800px at 50% -20%, rgba(255, 255, 255, 0.95), transparent 55%),
    radial-gradient(800px 600px at 100% 0%, color-mix(in oklab, var(--accent) 11%, transparent), transparent 60%),
    radial-gradient(900px 700px at 0% 100%, rgba(160, 180, 220, 0.16), transparent 60%),
    radial-gradient(700px 600px at 100% 100%, color-mix(in oklab, var(--accent) 9%, transparent), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* Floating, blurred accent orbs (3D depth without competing with content) */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(360px 360px at 82% 18%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 65%),
    radial-gradient(420px 420px at 12% 82%, rgba(200, 215, 240, 0.45), transparent 65%);
  filter: blur(50px);
  opacity: 0.7;
}

/* Smaller secondary highlight for layered depth */
.page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(200px 200px at 60% 8%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(160px 160px at 92% 92%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 70%);
  filter: blur(28px);
  opacity: 0.8;
}

/* Subtle paper grain — adds the “expensive” tactile feel without
   reading as noise. Fixed so it doesn't drift with scroll. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  opacity: 0.05;
  mix-blend-mode: multiply;
}

.page > * { position: relative; z-index: 2; }

/* ============================================================
   Top bar
   ============================================================ */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.015em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--text);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 2px;
  background: var(--bg);
}

body[data-accent] .brand-mark { background: var(--accent); }

.top-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-3);
}
.top-meta a { transition: color 160ms; }
.top-meta a:hover { color: var(--text); }

@media (max-width: 640px) {
  .top-meta { display: none; }
}

/* ============================================================
   Hub — homepage
   ============================================================ */

.hub-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(40px, 8vh, 100px) 0;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
}

.hub-hero .eyebrow { margin-bottom: 22px; }

.hub-hero h1 {
  max-width: 18ch;
  margin-bottom: 24px;
}

.hub-hero .lead {
  font-size: clamp(16px, 1.3vw, 19px);
  max-width: 56ch;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-3);
}

.hero-social-proof .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-soft);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-social-proof .separator {
  color: var(--text-4);
}

/* Ideas strip */

.ideas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 calc(-1 * clamp(28px, 4vw, 56px));
}

.idea-card {
  display: flex;
  flex-direction: column;
  padding: 28px clamp(20px, 2vw, 32px) 26px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: background 220ms var(--ease);
  position: relative;
  min-height: 240px;
}

.idea-card:hover { background: var(--bg-2); }

.idea-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--c, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms var(--ease);
}
.idea-card:hover::after { transform: scaleX(1); }

.idea-card[data-accent="blue"]    { --c: var(--blue); }
.idea-card[data-accent="purple"]  { --c: var(--purple); }
.idea-card[data-accent="emerald"] { --c: var(--emerald); }
.idea-card[data-accent="orange"]  { --c: var(--orange); }

.idea-card .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.idea-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

.idea-card .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

.idea-card h3 {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.idea-card .pain {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
  padding-bottom: 18px;
}

.idea-card .vote-count {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  width: fit-content;
  margin: auto 0 20px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 12.5px;
  letter-spacing: -0.005em;
}

.idea-card .vote-count strong {
  color: var(--c);
  font-weight: 600;
}

.idea-card .cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.idea-card .cta .arrow {
  transition: transform 280ms var(--ease);
  color: var(--c);
}
.idea-card:hover .cta .arrow { transform: translateX(4px); }

@media (max-width: 960px) {
  .ideas { grid-template-columns: repeat(2, 1fr); }
  .idea-card { min-height: 200px; }
}
@media (max-width: 540px) {
  .ideas { grid-template-columns: 1fr; }
  .idea-card { min-height: auto; padding: 22px clamp(20px, 5vw, 28px); }
}

/* ============================================================
   Idea page — single section
   ============================================================ */

.idea {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(24px, 4vh, 56px) 0;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.idea > * {
  width: 100%;
}

.idea .crumb,
.idea .vote-action,
.idea .signup-meta {
  /* keep inline-flex elements centered as a group */
  justify-content: center;
}

.idea h1,
.idea .user-quote,
.idea .lead {
  margin-left: auto;
  margin-right: auto;
}

/* Center signup pill + post-vote block */
.idea .post-vote {
  margin-left: auto;
  margin-right: auto;
}
.idea .signup {
  margin-left: auto;
  margin-right: auto;
}
.idea .frustration-input {
  margin-left: auto;
  margin-right: auto;
}
.idea .frustration-actions {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

/* Points cells: stay left-justified for multi-line readability,
   but center each label/heading so the column itself feels centered. */
.points {
  text-align: left;
}
.point { text-align: left; }

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 22px;
}

.crumb .crumb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.idea h1 {
  font-size: clamp(36px, 4.8vw, 64px);
  max-width: 18ch;
  margin-bottom: 22px;
}

.idea .lead {
  max-width: 54ch;
  font-size: clamp(15px, 1.2vw, 18px);
  margin-bottom: 36px;
}

/* User quote — first-person pain in the customer's voice */
.user-quote {
  margin: 0 0 36px;
  max-width: 60ch;
  padding: 0;
  position: relative;
}
.user-quote p {
  margin: 0;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--text);
  text-wrap: pretty;
  font-weight: 400;
}
.user-quote p::before,
.user-quote p::after {
  /* (Inline <span class="qm"> handles the visible quote marks
     so they survive any pseudo-element rendering quirks.) */
  content: none;
}

.user-quote .qm {
  display: inline;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6em;
  color: var(--accent);
  line-height: 1;
  vertical-align: -0.18em;
}
.user-quote .qm-l { margin-right: 4px; }
.user-quote .qm-r { margin-left: 4px; }
.user-quote footer {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.user-quote footer::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--text-4);
}

/* Signup row */

.signup {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 520px;
  padding: 6px 6px 6px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 200ms, box-shadow 200ms;
  box-shadow: 0 1px 2px rgba(0,0,0,0.025);
}

.signup:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.signup input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 12px 4px;
  font-size: 15px;
  color: var(--text);
  font-family: var(--font-sans);
  min-width: 0;
}
.signup input::placeholder { color: var(--text-4); }

.signup button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  height: 42px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 140ms, background 160ms;
  letter-spacing: -0.005em;
}
.signup button:hover { transform: translateX(1px); }
.signup button:active { transform: scale(0.98); }

.signup-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-3);
}

.signup-meta strong,
.hero-social-proof strong {
  color: var(--text);
  font-weight: 600;
}

.signup-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-3);
  letter-spacing: -0.005em;
}
.signup-meta .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* What we'll build (3 short bullets) */

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(32px, 5vh, 60px);
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.point {
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.point .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.point .label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.point h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.015em; }
.point p { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }

@media (max-width: 720px) {
  .points { grid-template-columns: 1fr; gap: 22px; }
  .point { padding-right: 0; }
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  transition: color 160ms, gap 200ms;
}
.back-link:hover { color: var(--text); gap: 12px; }
.back-link svg { transition: transform 200ms var(--ease); }
.back-link:hover svg { transform: translateX(-2px); }

/* ============================================================
   Footer (minimal)
   ============================================================ */

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  font-size: 12px;
  color: var(--text-4);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.foot .links { display: flex; gap: 18px; }
.foot a { transition: color 160ms; }
.foot a:hover { color: var(--text); }

/* ============================================================
   Success state
   ============================================================ */

.signup.is-success {
  border-color: var(--accent);
  padding-left: 22px;
}
.signup.is-success .input-wrap,
.signup.is-success > button { display: none; }
.signup.is-success .success-msg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 6px;
  font-size: 14.5px;
  color: var(--text);
}
.signup.is-success .success-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: inline-grid;
  place-items: center;
}
.success-msg { display: none; }

/* ============================================================
   Vote action + reveal
   ============================================================ */

.vote-action { display: inline-flex; margin-bottom: 6px; }

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  height: 48px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 200ms, color 200ms, transform 140ms var(--ease), border-color 200ms, box-shadow 200ms;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 10px 28px -10px var(--accent-soft);
}
.vote-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.vote-btn:active { transform: translateY(0); }
.vote-btn .arrow { transition: transform 240ms var(--ease); }
.vote-btn:hover .arrow { transform: translateX(3px); }

.vote-btn.is-voted {
  background: var(--bg-2);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  cursor: default;
  pointer-events: none;
  transform: none;
}

.vote-btn .check-ic {
  width: 16px; height: 16px;
}

/* Post-vote reveal — simple display toggle (no animation to
   avoid the throttled-iframe stuck-at-frame-0 issue). */
.post-vote {
  display: none;
  max-width: 600px;
  margin-top: 22px;
}
.post-vote.is-revealed {
  display: block;
}

.vote-confirm {
  font-size: 14.5px;
  color: var(--text-2);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.005em;
}
.vote-confirm strong {
  color: var(--accent);
  font-weight: 500;
}
.vote-confirm .check {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  flex-shrink: 0;
}

/* Frustration textarea */
.frustration-label {
  display: block;
  margin: 20px 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.frustration-input {
  width: 100%;
  max-width: 520px;
  min-height: 88px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  outline: 0;
  resize: vertical;
  transition: border-color 160ms, box-shadow 200ms;
  box-shadow: 0 1px 2px rgba(0,0,0,0.025);
  letter-spacing: -0.005em;
  display: block;
}
.frustration-input::placeholder { color: var(--text-4); }
.frustration-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.frustration-input:disabled {
  background: var(--surface);
  color: var(--text-3);
  cursor: default;
}

.frustration-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  max-width: 520px;
}
.frustration-actions .sent-msg {
  display: none;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  align-items: center;
  gap: 8px;
}
.frustration-actions.is-sent .sent-msg {
  display: inline-flex;
}
.frustration-actions.is-sent .sent-msg .check {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}

.frustration-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  height: 40px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: filter 160ms, transform 140ms;
}
.frustration-submit:hover { filter: brightness(1.05); }
.frustration-submit:active { transform: scale(0.98); }
.frustration-actions.is-sent .frustration-submit { display: none; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.32);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
}
.modal-backdrop.is-open {
  display: flex;
  opacity: 1;
}

.modal {
  width: 100%;
  max-width: 520px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.6) inset;
  transform: translateY(12px) scale(0.985);
  opacity: 0;
  transition: transform 320ms var(--ease-out), opacity 240ms var(--ease-out);
}
.modal-backdrop.is-open .modal {
  transform: none;
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-3);
  transition: background 160ms, color 160ms;
}
.modal-close:hover { background: var(--surface); color: var(--text); }

.modal .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.modal .label::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.modal h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  text-wrap: balance;
}

.modal .hint {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 18px;
}

.modal textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
  outline: 0;
  transition: border-color 160ms, box-shadow 200ms;
  letter-spacing: -0.005em;
}
.modal textarea::placeholder { color: var(--text-4); }
.modal textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions .meta {
  font-size: 12.5px;
  color: var(--text-4);
}

.modal-buttons {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  height: 42px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms, border-color 160ms, transform 140ms;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); }

@media (max-width: 540px) {
  .modal { padding: 24px; }
  .modal h2 { font-size: 22px; }
}

/* mobile: let it breathe */
@media (max-width: 720px) {
  .page { padding: 20px 22px; }
  .hub-hero { padding: 24px 0 32px; }
  .idea { padding: 16px 0 32px; }
}
