/* ================================
   INKWELL EXPERIENCE
   Voice conversation with stars and sphere
   ================================ */

/*
 * Design tokens are loaded globally via application.css
 * This file contains only inkwell-specific styles
 */

/* Hide global copyright - we have our own footer */
body > .copyright {
  display: none;
}

/* Hide footer on inkwell page */
.inkwell-body .page-footer {
  display: none !important;
}

/* Pure black background - apply immediately on page load */
html {
  background: var(--color-black) !important;
}

html, body {
  height: 100vh;
  height: 100dvh; /* Use dynamic viewport height on mobile (accounts for browser UI) */
  overflow: hidden; /* No scrolling - content scrolls internally */
}

body,
body.inkwell-body {
  background: var(--color-black) !important;
  position: relative;
}

.place-container {
  height: 100vh;
  height: 100dvh; /* Use dynamic viewport height on mobile */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0; /* No padding - children handle their own spacing */
  position: relative; /* For error-container absolute positioning */
  z-index: 2;
  animation: fadeIn 1.2s ease forwards;
}

.place-content {
  max-width: 850px; /* Wider on large screens (was 650px) */
  width: 100%;
  margin: 0 auto;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0; /* Allow flex child to shrink */
  padding: clamp(40px, 8vh, 80px) clamp(20px, 3vw, 40px) clamp(20px, 4vh, 40px); /* Add horizontal padding here */
  order: 1;
}

.questions-wrapper {
  position: relative;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center by default */
  flex: 1;

  /* No gradient by default */
  -webkit-mask-image: none;
  mask-image: none;

  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* When content overflows, align to top */
.questions-wrapper.has-overflow {
  justify-content: flex-start;
  padding-bottom: clamp(40px, 6vh, 60px); /* Add bottom padding when scrollable */
}

/* Apply bottom gradient when has overflow (not scrolled to bottom yet) */
.questions-wrapper.has-overflow:not(.scrolled-to-bottom) {
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 60px), transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 60px), transparent 100%);
}

/* Apply top gradient only when scrolled down */
.questions-wrapper.scrolled {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 60px, black calc(100% - 60px), transparent 100%);
}

/* When scrolled to bottom, only show top gradient */
.questions-wrapper.scrolled.scrolled-to-bottom {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 60px, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 60px, black 100%);
}

.questions-wrapper::-webkit-scrollbar {
  display: none;
}

.question-item {
  opacity: 0;
  transition: opacity 1.2s ease-out;
  pointer-events: none;
  width: 100%;
}

/* Welcome screen - remove old space-between layout (button now separate) */

.question-item.active {
  opacity: 1;
  pointer-events: auto;
}

.question-item.initial-entry {
  animation: slideDownFromTop 800ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.question-item.hidden {
  opacity: 0;
  display: none;
}

.question {
  font-family: var(--font-editorial);
  font-size: var(--text-2xl);
  line-height: 1.35;
  margin-bottom: clamp(8px, 1.5vh, 16px);
  font-weight: 400;
  color: var(--color-white);
}

.question em {
  font-style: italic;
  font-weight: 400; /* Use regular italic variant */
}

/* Transcript display */
.transcript-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 850px; /* Match place-content max-width */
  margin: 0 auto;
  right: 0;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  /* Force GPU layer for better animation performance */
  transform: translateZ(0);
  backface-visibility: hidden;
  /* Center the transcript text */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Error state positioning - appears below question instead of replacing it */
.transcript-container.error-state {
  position: relative;
  top: auto;
  margin-top: clamp(24px, 4vh, 40px); /* Space below question */
  pointer-events: auto;
}

.transcript-container.visible {
  opacity: 1;
}

.transcript-container.dissolving {
  /* Disable transition to prevent interference with animation */
  transition: none !important;
  /* Force GPU acceleration */
  will-change: opacity, transform, filter;
  /* 3s slower dissolve, infinite loop, alternate direction creates breathing effect */
  animation: dissolveToStardust 3s ease-in-out infinite alternate;
}

.transcript-text {
  font-family: var(--font-handwriting-monk);
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.4;
  margin-bottom: 0;
  color: var(--color-white);
  white-space: pre-wrap;
  letter-spacing: 0.02em;
}

/* Error state - Ronin Red scribbled notes */
.transcript-container.error-state .transcript-text {
  color: var(--color-ronin-red); /* Ronin Red */
  font-size: clamp(22px, 2.8vw, 28px); /* Slightly smaller than transcript */
  line-height: 1.15; /* Very tight line height for compact error messages */
}

.transcript-container.error-state {
  /* Errors don't dissolve, they stay until dismissed */
  animation: none !important;
}

/* Error container - positioned in flex flow above sphere */
.error-container {
  position: relative;
  width: 100%;
  max-width: 850px;
  min-height: 40px; /* Ensure container has height even with just switcher link */
  margin: 0 auto clamp(20px, 3vh, 40px);
  padding: 0 clamp(20px, 3vw, 40px); /* Horizontal padding to match place-content */
  z-index: 100;
  pointer-events: none; /* Allow clicks to pass through when empty */
  text-align: center;
  order: 10; /* Position between place-content and sphere-container */
}

/* Enable pointer-events when switcher link is present */
.error-container.has-switcher {
  pointer-events: auto;
}

.error-container .error-message {
  font-family: var(--font-handwriting-monk);
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.15;
  color: var(--color-ronin-red);
  white-space: pre-wrap;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: auto;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 40px);
}

.error-container .error-message.visible {
  opacity: 1;
}

/* Microphone picker backdrop - click to dismiss */
.mic-picker-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 199;
  pointer-events: auto;
  background: transparent;
}

/* Microphone selection UI - fixed at top like info card */
.mic-selection {
  position: fixed;
  top: clamp(16px, 3vh, 24px);
  left: 0;
  right: 0;
  margin: 0 auto;
  pointer-events: auto;
  width: min(90vw, 420px);
  padding: clamp(24px, 4vw, 32px);
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.5s ease forwards;
  z-index: 200;
}

/* Legacy support for error-container context */
.error-container .mic-selection {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: auto;
}

.mic-selection-label {
  font-family: var(--font-editorial);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  padding: 0 16px; /* Align with option text */
}

.mic-selection-hint {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  padding: 0 16px; /* Align with option text */
}

.mic-options-list {
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  padding-right: 0;
  position: relative;

  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;

  /* Gradient fade at bottom to indicate more content */
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 48px), transparent 100%);
}

.mic-options-list::-webkit-scrollbar {
  display: none;
}

.mic-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
  padding: 14px 16px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.mic-option:last-child {
  margin-bottom: 0;
}

.mic-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mic-option.selected {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 1);
}

/* Mic option content layout */
.mic-option-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Amplitude bar */
.mic-amplitude-bar {
  flex: 0 0 60px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.mic-amplitude-fill {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  transition: width 50ms ease-out;
}

.mic-amplitude-fill.active {
  background: rgba(255, 255, 255, 0.9);
}

/* No mics message */
.mic-no-devices {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 20px 0;
}

/* Close button for mic picker */
.mic-picker-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
  line-height: 1;
}

.mic-picker-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

/* Microphone switcher link - escape hatch for wrong mic selection */
.error-container .mic-switcher-link {
  display: block;
  margin: clamp(20px, 4vh, 32px) auto 0;
  padding: clamp(10px, 2vh, 14px);
  font-family: var(--font-handwriting-monk);
  font-size: clamp(18px, 2.2vw, 22px);
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
  pointer-events: auto;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 4px;
  position: relative;
  z-index: 100;
}

.error-container .mic-switcher-link:hover {
  color: rgba(255, 255, 255, 0.95);
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

/* Star field */
.star-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* Use dynamic viewport height on mobile */
  z-index: 1;
  pointer-events: none;
  transform: translateZ(0);
  will-change: contents;
}

.closing-text {
  opacity: 0;
  display: none;
  transition: opacity 0.4s ease;
  margin-top: clamp(64px, 10vh, 80px);
}

.closing-text.visible {
  opacity: 1;
  display: block;
}

.closing-text p {
  font-family: var(--font-editorial);
  font-size: clamp(22px, min(6vw, 5vh), 30px);
  line-height: 1.35;
  margin-bottom: clamp(8px, 1.5vh, 16px);
  font-weight: 400;
  color: var(--color-white);
}

.closing-text p strong {
  font-weight: 600;
}

.closing-text .continue-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-gray-500);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-top: clamp(32px, 5vh, 48px);
  transition: opacity 0.8s ease;
}

.closing-text .continue-hint.visible {
  opacity: 1;
}

.closing-text.visible {
  cursor: pointer;
}

.tap-hint {
  display: none;
}

.click-hint {
  display: inline;
}

@media (pointer: coarse) {
  .tap-hint {
    display: inline;
  }
  .click-hint {
    display: none;
  }
}

/* Sphere Container */
.sphere-container {
  position: relative;
  width: 100%;
  height: 0; /* No space when hidden */
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.6s ease;
  overflow: visible; /* Allow instruction to overlap */
  order: 20;
}

.sphere-container.visible {
  height: min(240px, 30vh); /* Cap at 30% of viewport height */
  opacity: 1;
}

.sphere-instruction {
  position: absolute;
  top: 0; /* Align with top of canvas */
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-handwriting);
  font-size: clamp(22px, 2.8vw, 26px);
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 100; /* Above sphere canvas */
  line-height: 1.4; /* Ensure proper line height for text and arrow */
}

.sphere-instruction .key {
  display: inline-block;
  padding: 3px 6px;
  margin: 0 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.7);
  font-family: monospace;
  font-size: 20px;
  vertical-align: baseline;
}

.instruction-arrow {
  display: block;
  margin: 4px auto 0; /* Closer to text */
  color: rgba(255, 255, 255, 0.4);
  animation: bounce 1.5s ease-in-out infinite;
  /* Scale with sphere: 60px for 240px sphere, so 25% of sphere height */
  width: auto;
  height: calc(min(240px, 30vh) * 0.25);
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.sphere-container canvas {
  width: 100%;
  height: min(240px, 30vh);
  pointer-events: auto;
  cursor: pointer;
  transform: translateZ(0);
  will-change: contents;
  position: relative;
  z-index: 1;
}

canvas {
  width: 100%;
  height: 100%;
  pointer-events: auto;
  cursor: pointer;
  transform: translateZ(0);
  will-change: contents;
  position: relative;
  z-index: 1;
}

canvas.pressed {
  cursor: grabbing;
}

/* Page Footer */
/* Footer is hidden on inkwell page - see .inkwell-body .page-footer above */

/* Mobile styles */
@media (max-width: 768px) {
  .place-content {
    max-width: 100%;
    transform: translateY(0);
    text-align: center;
    padding-left: 32px;
    padding-right: 32px;
  }

  .question {
    text-align: center;
    font-size: var(--text-2xl);
  }

  .closing-text p {
    text-align: center;
    font-size: clamp(19.8px, min(5.4vw, 4.5vh), 57.6px); /* 90% of original */
  }

  .error-container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .welcome-card {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Desktop: smaller, centered text */
@media (min-width: 769px) {
  .place-content {
    padding-top: 120px;
  }

  .question {
    text-align: center;
  }

  .closing-text p {
    font-size: clamp(22px, 3.15vw, 30px);
    text-align: center;
  }
}

/* First question slides down from top on first visit */
.question-item.initial-entry {
  opacity: 0;
  transform: translateY(-40px);
  animation: slideDownFromTop 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes slideDownFromTop {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Welcome screen on first visit - styled like regular questions */
.inkwell-welcome {
  /* No special positioning - uses normal flow */
}

.welcome-continue-hint {
  font-family: var(--font-handwriting);
  font-size: 32px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 20px;
  transition: color 0.3s ease;
}

.welcome-continue-hint:hover {
  color: rgba(255, 255, 255, 1);
}

.continue-arrow {
  width: 50px;
  height: 30px;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}


/* ===== Inkwell Onboarding: Name Input ===== */
.inkwell-name-input-wrapper {
  margin-top: clamp(24px, 4vh, 40px);
  text-align: center;
}

.inkwell-name-input {
  font-family: var(--font-handwriting-monk), cursive;
  font-size: calc(var(--text-2xl) * 1.2);
  font-weight: 400;
  color: var(--color-white);
  background: transparent;
  border: none;
  border-bottom: 3px dotted rgba(255, 255, 255, 0.5);
  padding: 2px 12px 8px 12px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  transition: all 200ms ease;
  outline: none;
  text-transform: capitalize;
}

.inkwell-name-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  text-transform: lowercase;
}

.inkwell-name-input:focus {
  border-bottom-color: rgba(255, 255, 255, 0.8);
}

/* ===== Inkwell Onboarding: Level Selection (mirrors threshold profile selection) ===== */
.inkwell-handwritten-name {
  font-family: var(--font-handwriting-monk), cursive;
}

.inkwell-profile-options {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: clamp(24px, 4vh, 32px) auto 0;
  width: 100%;
  max-width: 600px;
}

.inkwell-profile-option {
  padding: clamp(20px, 3.5vh, 28px) 0;
  cursor: pointer;
  user-select: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.5vh, 12px);
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.inkwell-profile-option .profile-label {
  font-family: var(--font-editorial);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-white);
  display: inline-block;
  letter-spacing: -0.01em;
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.inkwell-profile-option:hover .profile-label {
  opacity: 0.5;
}

.inkwell-profile-options .profile-indicators {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.inkwell-profile-options .indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.inkwell-profile-options .indicator.filled {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.7);
}

.inkwell-profile-options .profile-divider {
  width: 60%;
  max-width: 300px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 auto;
  position: relative;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .inkwell-name-input {
    font-size: calc(var(--text-xl) * 1.1);
    max-width: 100%;
  }

  .inkwell-profile-option .profile-label {
    font-size: clamp(20px, 4.5vw, 24px);
  }
}

/* ===== Info Button & Card Container ===== */
.inkwell-info-container {
  position: fixed;
  top: clamp(16px, 3vh, 24px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
}

.inkwell-info-container.expanded {
  z-index: 300;
}

.inkwell-info-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease, opacity 0.8s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 0 auto;
  opacity: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.inkwell-info-button.visible {
  opacity: 1;
}

.inkwell-info-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.inkwell-info-button .info-icon {
  font-family: var(--font-editorial);
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1;
}

.inkwell-info-button:hover .info-icon {
  color: rgba(255, 255, 255, 1);
}

/* Hide button when card is open */
.inkwell-info-container.expanded .inkwell-info-button {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

/* ===== Info Card (separate from button for backdrop-filter) ===== */
.inkwell-info-card {
  position: fixed;
  top: clamp(16px, 3vh, 24px);
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(90vw, 420px);
  padding: clamp(24px, 4vw, 32px);
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.inkwell-info-card.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.inkwell-info-card h3 {
  font-family: var(--font-editorial);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.inkwell-info-card p {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.inkwell-info-card p:last-child {
  margin-bottom: 0;
}

.inkwell-info-card strong {
  font-weight: 500;
  color: rgba(255, 255, 255, 1);
}

.inkwell-info-card .info-faq {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.inkwell-info-card .faq-item {
  margin-bottom: 16px;
}

.inkwell-info-card .faq-item:last-child {
  margin-bottom: 0;
}

.inkwell-info-card .faq-question {
  font-family: var(--font-editorial);
  font-size: 15px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
  display: block;
}

.inkwell-info-card .faq-answer {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

.info-card-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
  line-height: 1;
}

.info-card-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

/* Backdrop for dismissing card (click target only, no visual effect) */
.inkwell-info-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 150;
  pointer-events: none;
}

.inkwell-info-backdrop.visible {
  pointer-events: auto;
}

/* ===== Confidentiality Note ===== */
.confidentiality-note {
  font-family: var(--font-handwriting);
  font-size: clamp(22px, 3vw, 28px);
  color: rgba(255, 255, 255, 0.4);
  margin-top: clamp(12px, 2vh, 20px);
  text-align: center;
}
