body {
  background-color: #f5f6f8;
  color: #212529;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

h1 {
  font-size: 1.3rem;
  font-weight: bold;
}

h2 {
  font-size: 1.2rem;
  font-weight: bold;
}

h3 {
  font-size: 1.1rem;
  font-weight: bold;
}

.navbar-brand {
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.navbar a.btn {
  font-weight: 600;
}

.main-content {
  padding-bottom: 0rem;
}

.main-content section + section {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.icon-tile,
.step-card,
.security-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.icon-tile:hover,
.icon-tile:focus-within,
.step-card:hover,
.step-card:focus-within,
.security-card:hover,
.security-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 1.25rem 2.5rem rgba(15, 60, 130, 0.12);
  background-color: #f8faff;
}

.security-card {
  background-color: #f8f9fb;
}

.badge.text-bg-light {
  background-color: rgba(13, 110, 253, 0.08) !important;
  color: #0d3d8f;
  letter-spacing: 0.04em;
}

footer .nav-link {
  color: rgba(33, 37, 41, 0.65);
}

footer .nav-link:hover,
footer .nav-link:focus {
  color: #0d6efd;
}

.border-dashed {
  border-style: dashed !important;
}

.file-dropzone {
  border-color: rgba(13, 110, 253, 0.35);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.file-dropzone.is-dragover {
  background-color: #e9f3ff;
  border-color: #0d6efd;
  color: #0d6efd;
}

#narrative-attachments {
  position: sticky;
  top: 1rem;
  align-self: flex-start;
  max-height: calc(100vh - 1.5rem);
  overflow-y: auto;
  padding-bottom: 0.5rem;
}

#narrative-attachments .narrative-attachments-scroll-top-wrap {
  position: sticky;
  top: 0.5rem;
  z-index: 8;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.25rem;
  pointer-events: none;
}

#narrative-attachments .narrative-attachments-scroll-top {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: none;
  color: #fff;
  opacity: 0.75;
  background-color: rgba(0, 0, 0, 0.6);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: opacity 160ms ease, background-color 160ms ease, transform 160ms ease;
  pointer-events: auto;
}

#narrative-attachments .narrative-attachments-scroll-top:hover,
#narrative-attachments .narrative-attachments-scroll-top:focus {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.75);
  transform: translateY(-1px);
}

#narrative-attachments.is-dragover {
  outline: 2px dashed rgba(13, 110, 253, 0.5);
  border-radius: 0.75rem;
  background-color: rgba(13, 110, 253, 0.06);
  transition: background-color 120ms ease, outline-color 120ms ease;
}

#narrative-attachments .narrative-drop-overlay {
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  background-color: rgba(13, 110, 253, 0.85);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

#narrative-attachments .narrative-drop-overlay i,
#narrative-attachments .narrative-drop-overlay p,
#narrative-attachments .narrative-drop-overlay small {
  color: #fff;
}

#narrative-attachments.is-dragover .narrative-drop-overlay {
  opacity: 1;
}

#attachment-add-docs {
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding-right: 0.35rem;
}

.ia-panel-toggle {
  position: fixed;
  left: 0.5rem;
  top: 65%;
  z-index: 1035;
  display: inline-flex;
  width: fit-content;
  max-width: fit-content;
}

.ia-panel-toggle .btn {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 0.5rem 0.6rem;
}

.attachments-sortable [data-attachment-item] {
  cursor: grab;
}

.attachments-sortable [data-attachment-item].is-dragging {
  opacity: 0.6;
  cursor: grabbing;
}

.fact-content {
  white-space: pre-wrap;
  display: block;
  width: 100%;
  height: auto;
}

.fact-attachment,
.attachment {
  margin: 0 0.2rem;
  font-weight: 600;
  display: inline-block;
}

.mention-suggestions {
  max-height: 220px;
  overflow-y: auto;
  margin-top: 0.25rem;
  display: none;
}

.mention-suggestions.is-visible {
  display: block;
}

.attachment[data-attachment-chip='true'] {
  background-color: rgba(13, 110, 253, 0.08);
  border-radius: 0.35rem;
  padding: 0.1rem 0.35rem;
  cursor: default;
}

.attachment[data-attachment-chip='true'].is-selected {
  background-color: rgba(255, 159, 67, 0.25);
  outline: 2px solid rgba(255, 159, 67, 0.6);
}

.upload-progress .progress {
  height: 0.75rem;
}

.rich-editor-wrapper {
  display: flex;
  padding: 0;
  min-height: 220px;
}

.rich-editor-wrapper.form-control {
  padding: 0;
}

.rich-editor-wrapper:focus-within {
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
  border-color: #0d6efd;
}

.rich-editor {
  position: relative;
  flex: 1;
  min-height: 220px;
  outline: none;
  overflow-y: auto;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  border: 0;
  background-color: transparent;
  font-size: 0.9375rem;
  line-height: 1.5;
  white-space: normal;
  /* Scrollbar – scoped to the editor only */  
  scrollbar-color: #c2c2c2 #f4f4f4;
}

/* Limite la hauteur de la zone d'édition pour avoir un scroll uniquement dans l'éditeur (desktop) */
@media (min-width: 992px) {
  .rich-editor {
    max-height: calc(100vh - 9rem);
  }
}

.rich-editor:focus {
  box-shadow: none;
  border-color: transparent;
}

.rich-editor[data-rich-readonly-during-save="true"] {
  cursor: not-allowed;
}

.rich-editor.is-empty::before {
  content: attr(data-placeholder);
  color: rgba(33, 37, 41, 0.55);
  pointer-events: none;
}

/* WebKit scrollbars for the editor */
.rich-editor::-webkit-scrollbar {
  width: 30px;
}
.rich-editor::-webkit-scrollbar-thumb {
  background: #c2c2c2;
  border-radius: 8px;
}
.rich-editor::-webkit-scrollbar-track {
  background: #f4f4f4;
}

#narrative-format-buttons {
  position: sticky;
  top: 4rem;
  z-index: 1040; /* above editor content */
  background-color: #fff;
  padding: 0.5rem 0;
  margin-bottom: 0.25rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.1rem;
  box-shadow: 0 0.35rem 1rem rgba(15, 60, 130, 0.06);
  padding: 10px;
}

.rich-editor-form {
  position: relative;
}

.rich-editor p {
  margin-top: 0;
  margin-bottom: 0;
}

.rich-editor li > p {
  margin-top: 0;
  margin-bottom: 0;
}

.attachment-mention {
  background-color: #f1f3f5;
  border: 1px solid #e1e3e5;
  color: #212529;
  font-weight: 600;
  cursor: pointer;
  user-select: text;
  font-size: 0.8em;
  line-height: inherit;
  font-weight: 600;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.3rem;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.attachment-mention:hover {
  background-color: #ffcf9e;
  border-color: #ffb566;
  color: #1f1f1f;
}

.attachment-title {
  display: inline-block;
  max-width: 24rem;
  vertical-align: middle;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.recent-edited-paragraph-link {
  max-width: 18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1f1f1f;
  font-weight: 500;
  text-decoration: none;
}

.recent-edited-paragraph-link:hover {
  text-decoration: underline;
}

.narrative-toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.narrative-toc li {
  margin: 0.15rem 0;
}
.narrative-toc .toc-h1 {
  margin-left: 0;
  font-weight: 700;
}
.narrative-toc .toc-h2 {
  margin-left: 1rem;
}
.narrative-toc .toc-h3 {
  margin-left: 1.5rem;
}
.narrative-toc a {
  color: inherit;
  text-decoration: none;
}

#previewAttachmentModal .modal-body {
  padding: 0 1.2rem;
}

.preview-transcript {
  min-height: 90vh;
  height: 90vh;
  overflow-y: auto;
  padding: 1.2rem 1.2rem;
  white-space: pre-wrap;
}

.preview-transcript-toolbar {
  position: sticky;
  top: -0.35rem;
  z-index: 3;
  background: linear-gradient(180deg, #ffffff 75%, rgba(255, 255, 255, 0));
  padding: 0.35rem 0 0.4rem;
}

.preview-transcript-toolbar-shell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #e6e9ee;
  background: #f8f9fb;
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
}

.preview-transcript-toolbar-icon {
  color: #6c757d;
  font-size: 0.8rem;
  line-height: 1;
}

.preview-transcript-search-input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  font-size: 0.82rem;
  color: #495057;
}

.preview-transcript-search-input::placeholder {
  color: #9aa1a9;
}

.preview-transcript-toolbar-count {
  font-size: 0.74rem;
  color: #6c757d;
  margin-right: 0.1rem;
}

.preview-transcript-toolbar-btn {
  border: 0;
  background: transparent;
  color: #6c757d;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.preview-transcript-toolbar-btn:hover:not(:disabled) {
  background: #eef1f5;
  color: #495057;
}

.preview-transcript-toolbar-btn:disabled {
  opacity: 0.35;
}

.preview-transcript-search-input:focus {
  outline: none;
}

.preview-transcript-toolbar-shell:focus-within {
  border-color: #b8d1ff;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.12);
}

.preview-transcript-toolbar-btn:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.35);
  outline-offset: 1px;
}

.preview-transcript-content {
    white-space: pre-wrap;
}

.preview-transcript-hit {
  background: #fff3cd;
  padding: 0 0.05rem;
  border-radius: 0.2rem;
}

.preview-transcript-hit-active {
  background: #ffc107;
}

.preview-chunk-text {
    white-space: pre-wrap;
}

.preview-chunk-vector {
  margin-top: 0.35rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #e3e6ea;
  border-radius: 0.35rem;
  background: #f7f8fa;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: pre-wrap;
  max-height: 10rem;
  overflow: auto;
}

.attachment-transcript-generate i {
  display: inline-block;
}

.attachment-transcript-generate.is-loading i {
  animation: attachment-spin 0.8s linear infinite;
}

@keyframes attachment-spin {
  to {
    transform: rotate(360deg);
  }
}

.narrative-attachments-list .attachment-toc-item {
  cursor: pointer;
  padding: 0.15rem 0.25rem;
  border-radius: 0.25rem;
  transition: background-color 120ms ease, color 120ms ease;
}

.narrative-attachments-list .attachment-toc-item:hover {
  background-color: #ffcf9e;
  color: #1f1f1f;
}

.narrative-attachments-list .attachment-toc-item:active {
  background-color: #ffb566;
}
.narrative-toc a:hover {
  text-decoration: underline;
}
.narrative-toc-panel a {
  color: inherit;
  text-decoration: none;
}
.narrative-toc-panel a:hover {
  text-decoration: underline;
}
.narrative-toc-panel .toc-h1 {
  font-weight: 700;
}
.highlight-yellow {
  background-color: #fff3cd;
  padding: 0 0.05em;
}
.missing-attachment-highlight {
  background-color: #f8d7da;
  border: 1px solid #f1aeb5;
  border-radius: 0.2rem;
  padding: 0 0.2rem;
}
.missing-attachment-active {
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.4);
}

#narrative-format-buttons [data-rich-action="highlight"] .bi-highlighter {
  color: #f5c400;
}

.story-done .fw-semibold,
.story-done .story-desc {
  color: rgba(181, 181, 181, 1) !important;
  text-decoration: line-through;
}

.narrative-assertion {
  transition: background-color 120ms ease;
  position: relative;
}

.narrative-assertion:hover {
  background-color: #e7f3ff;
}

.narrative-assertion-btn {
  margin-left: 0.35rem;
  padding: 0.125rem 0.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  border-width: 1px;
  font-size: 0.85em;
  position: absolute;
  top:0;
  right: 0;
  background-color: white;
  user-select: none;
}

.narrative-assertion-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  min-width: 14rem;
  z-index: 5;
}
.narrative-toc-toggle {
  position: fixed;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left top;
  z-index: 2000;
  box-shadow: 0 0.35rem 1rem rgba(15, 60, 130, 0.1);
}
.narrative-toc-panel {
  position: fixed;
  left: 3.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 0.75rem 0.5rem 0.75rem;
  box-shadow: 0 0.75rem 2rem rgba(0,0,0,0.12);
  z-index: 2001;
}
.narrative-toc-panel .close-btn {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
}

@media print {
  /* Force colors and backgrounds to be kept by the browser print engine */
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body {
    background: #f5f6f8 !important;
    color: #212529 !important;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }
  h1 {
    font-size: 1.3rem !important;
    font-weight: bold !important;
  }
  h2 {
    font-size: 1.2rem !important;
    font-weight: bold !important;
  }
  h3 {
    font-size: 1.1rem !important;
    font-weight: bold !important;
  }
  .attachment-mention {
    background-color: #f1f3f5 !important;
    border: 1px solid #cdd0d4 !important;
    color: #212529 !important;
    border-radius: 0.3rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.8em !important;
  }
  .rich-editor,
  .narrative-assertion {
    background: #fff !important;
    color: #212529 !important;
  }
  .narrative-assertion {
    page-break-inside: avoid;
  }
  /* Hide purely interactives in print */
  #narrative-format-buttons,
  .narrative-assertion-btn,
  .narrative-assertion-menu,
  .btn,
  .dropdown-menu {
    display: none !important;
  }
}
#narrative-save-toast {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  z-index: 2002;
  pointer-events: none;
}
#narrative-save-toast .alert {
  padding: 0.5rem 0.75rem;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.sticky-note-toggle {
  position: fixed;
  left: 2%;
  bottom: 1rem;
  z-index: 1040;
  background: var(--bs-primary);
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sticky-note-toggle:hover {
  background: var(--bs-primary);
  filter: brightness(0.9);
}

.sticky-note-panel {
  position: fixed;
  left: 8%;
  bottom: 3.75rem;
  width: 32%;
  min-width: 280px;
  max-width: 420px;
  max-height: 60vh;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1041;
  display: flex;
  flex-direction: column;
}

.sticky-note-panel .sticky-note-textarea {
  resize: vertical;
  min-height: 450px;
  max-height: 60vh;
  font-size: 0.8em;
}

.sticky-note-panel .badge[data-note-status] {
  font-weight: 500;
}

.sticky-note-panel [data-note-close] {
  line-height: 1;
  padding: 0.35rem 0.45rem;
}

.sticky-note-drag {
  cursor: move;
  user-select: none;
}

.attachment-note-panel {
  background: #fff;
}

.attachment-note-panel .attachment-note-textarea {
  font-size: 0.85em;
  min-height: 160px;
}

.attachment-note-panel .preview-note-content {
  white-space: pre-wrap;
  font-size: 0.85em;
}

.pdfjs-viewer {
  background: #d9d9d9;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1rem;
}

.preview-container {
  position: relative;
}

.preview-pdfjs {
  overflow: auto;
}

.pdfjs-page {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.pdfjs-page canvas {
  max-width: 100%;
  height: auto;
}

.preview-pdfjs.is-pan-enabled {
  cursor: grab;
}

.preview-pdfjs.is-panning {
  cursor: grabbing;
}

.pdfjs-controls {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(60, 60, 60, 0.65);
  color: #fff;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-in-out;
  backdrop-filter: blur(6px);
  z-index: 2;
  transform: translateX(-50%);
}

.preview-container:hover .pdfjs-controls {
  opacity: 1;
  pointer-events: auto;
}

.pdfjs-control-btn {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0.1rem 0.25rem;
  line-height: 1;
}

.pdfjs-control-btn:disabled {
  opacity: 0.5;
}

.pdfjs-zoom-label {
  min-width: 3rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.iassist-chat {
  min-height: 45vh;
  max-height: 55vh;
  overflow-y: auto;
}

.iassist-message {
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.4;
  font-size: 0.95rem;
  max-width: 90%;
}

.iassist-message-user {
  align-self: flex-end;
  background: #0d6efd;
  color: #fff;
}

.iassist-message-assistant {
  align-self: flex-start;
  background: #f1f3f5;
  color: #111;
}

.iassist-message-assistant h2,
.iassist-message-assistant h3,
.iassist-message-assistant h4,
.iassist-message-assistant h5,
.iassist-message-assistant h6 {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.iassist-message-assistant h2 {
  font-size: 1.05rem;
}

.iassist-message-assistant p {
  margin: 0 0 0.5rem;
}

.iassist-message-assistant ul {
  padding-left: 1.1rem;
  margin: 0 0 0.5rem;
}

.iassist-message-assistant li + li {
  margin-top: 0.25rem;
}

.iassist-message-assistant code {
  background: rgba(0, 0, 0, 0.06);
  padding: 0.05rem 0.2rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.iassist-form textarea {
  resize: vertical;
  min-height: 80px;
}

.landing-page {
  --landing-night: #0e1726;
  --landing-night-soft: #15253c;
  --landing-ink: #102033;
  --landing-ink-soft: #5c6778;
  --landing-paper: #f5f0e8;
  --landing-paper-strong: #ece3d7;
  --landing-card: #fffdf9;
  --landing-accent: #b38744;
  --landing-accent-soft: rgba(179, 135, 68, 0.14);
  --landing-line: rgba(16, 32, 51, 0.1);
  --landing-line-strong: rgba(255, 255, 255, 0.12);
  --landing-shadow: 0 28px 70px rgba(12, 22, 35, 0.14);
  color: var(--landing-ink);
  background: linear-gradient(180deg, #faf7f1 0%, #f4eee4 100%);
}

.landing-page h1,
.landing-page h2,
.landing-page h3 {
  font-family: "Canela", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--landing-ink);
}

.landing-page p,
.landing-page li,
.landing-page span,
.landing-page strong,
.landing-page em,
.landing-page a {
  font-family: "Söhne", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

.landing-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(179, 135, 68, 0.2), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.55), transparent 18%),
    linear-gradient(180deg, #f8f3ea 0%, #efe5d6 100%);
  color: var(--landing-ink);
}

.landing-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 92%);
  opacity: 0.22;
}

.py-lg-6 {
  padding-top: 5.5rem !important;
  padding-bottom: 5.5rem !important;
}

.landing-eyebrow,
.landing-section-kicker,
.landing-panel-kicker,
.landing-contrast-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(179, 135, 68, 0.24);
  background: rgba(255, 255, 255, 0.55);
  color: var(--landing-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-title {
  font-size: clamp(2.9rem, 5vw, 5.4rem);
  line-height: 0.92;
  max-width: 10ch;
  color: var(--landing-ink);
}

.landing-subtitle {
  font-size: 1.15rem;
  color: var(--landing-ink-soft);
  max-width: 40rem;
}

.landing-proofband {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.landing-proofband span {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 32, 51, 0.08);
  color: var(--landing-ink);
  font-size: 0.92rem;
  box-shadow: none;
}

.landing-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.landing-stat-card {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(16, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.6);
  color: var(--landing-ink-soft);
}

.landing-stat-card strong {
  color: var(--landing-ink);
  font-size: 1rem;
}

.landing-preview-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.96) 0%, rgba(248, 242, 232, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: var(--landing-shadow);
  backdrop-filter: blur(18px);
}

.landing-preview-toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--landing-line);
  background: rgba(16, 32, 51, 0.06);
}

.landing-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: rgba(16, 32, 51, 0.18);
}

.landing-preview-label {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--landing-ink-soft);
}

.landing-preview-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: 1rem;
  padding: 1.15rem;
}

.landing-preview-column {
  display: grid;
  gap: 1rem;
}

.landing-preview-column-wide {
  align-content: start;
}

.landing-preview-panel {
  border-radius: 1.35rem;
  padding: 1.15rem;
  border: 1px solid var(--landing-line);
  background: rgba(255, 255, 255, 0.82);
}

.landing-preview-panel h2 {
  font-size: 1.42rem;
  margin: 0.6rem 0 0.9rem;
}

.landing-preview-panel-dark {
  background: linear-gradient(180deg, #17263b 0%, #101d2f 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.landing-preview-panel-dark h2,
.landing-preview-panel-dark li,
.landing-preview-panel-dark .landing-panel-kicker {
  color: #f8f3ea;
}

.landing-preview-panel-soft {
  background: linear-gradient(180deg, rgba(179, 135, 68, 0.14) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.landing-preview-panel-story {
  background: linear-gradient(180deg, #fff 0%, #f8f1e7 100%);
}

.landing-preview-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.landing-preview-list li,
.landing-timeline-item,
.landing-scorecard {
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 32, 51, 0.08);
}

.landing-preview-list li {
  padding: 0.65rem 0.75rem;
  color: rgba(255, 248, 240, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.landing-badge {
  display: inline-flex;
  margin-right: 0.55rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--landing-accent-soft);
  color: var(--landing-accent);
  font-size: 0.76rem;
  font-weight: 700;
}

.landing-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.landing-pill-grid span {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 32, 51, 0.08);
  color: var(--landing-ink);
  font-size: 0.9rem;
}

.landing-timeline-item {
  display: grid;
  gap: 0.18rem;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.6rem;
}

.landing-timeline-item strong {
  font-size: 0.95rem;
}

.landing-timeline-item em {
  color: var(--landing-accent);
  font-style: normal;
  font-weight: 700;
}

.landing-preview-panel-story p {
  color: var(--landing-ink-soft);
  margin-bottom: 1rem;
}

.landing-story-head {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

.landing-story-status {
  display: inline-flex;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(179, 135, 68, 0.14);
  color: var(--landing-accent);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.landing-scorecard {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
}

.landing-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.6rem;
  height: 4.6rem;
  border-radius: 1.2rem;
  background: var(--landing-night);
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.landing-score-text {
  color: var(--landing-ink-soft);
  line-height: 1.45;
}

.landing-section-heading {
  max-width: 46rem;
  margin-bottom: 1.4rem;
}

.landing-section-heading h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  margin-top: 0.9rem;
  margin-bottom: 0.35rem;
}

.landing-section-heading-tight {
  max-width: 42rem;
}

.landing-section-copy {
  color: var(--landing-ink-soft);
  max-width: 38rem;
  margin-bottom: 0;
}

.landing-framework,
.landing-proof,
.landing-final-cta {
  background: linear-gradient(180deg, rgba(245, 240, 232, 0.45) 0%, rgba(255, 255, 255, 0) 100%);
}

.landing-framework-card,
.landing-audience-card,
.landing-proof-card,
.landing-security-card,
.landing-final-card,
.landing-security-shell {
  border-radius: 1.6rem;
  border: 1px solid var(--landing-line);
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 32, 51, 0.08);
}

.landing-framework-card,
.landing-audience-card,
.landing-proof-card {
  padding: 1.45rem;
  border-radius: 1.35rem;
  border: 1px solid var(--landing-line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(16, 32, 51, 0.07);
}

.landing-framework-card h3,
.landing-audience-card h3,
.landing-proof-card h3,
.landing-final-card h2,
.landing-security-lead h2 {
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
}

.landing-framework-card p,
.landing-audience-card p,
.landing-proof-card p,
.landing-security-card p,
.landing-final-card p {
  margin-bottom: 0;
  color: var(--landing-ink-soft);
}

.landing-framework-index {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--landing-accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.landing-audience-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--landing-ink-soft);
}

.landing-audience-list li + li {
  margin-top: 0.45rem;
}

.landing-proof-card i {
  display: inline-flex;
  margin-bottom: 1rem;
  font-size: 1.65rem;
  color: var(--landing-accent);
}

.landing-security-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 2rem;
  padding: 1.7rem;
}

.landing-security-lead {
  padding-right: 1rem;
}

.landing-security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.landing-security-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  height: 100%;
  border-radius: 1.1rem;
}

.landing-security-card i {
  font-size: 1.25rem;
  color: var(--landing-accent);
}

.landing-security-card strong {
  display: block;
  margin-bottom: 0.18rem;
}

.landing-final-card {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: 2rem 2.2rem;
  background:
    radial-gradient(circle at top right, rgba(179, 135, 68, 0.18), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f7efe4 100%);
}

.landing-final-card h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0.9rem 0 0.75rem;
  max-width: 14ch;
}

.landing-final-card p {
  max-width: 40rem;
}

.landing-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
}

.landing-footer {
  border-color: var(--landing-line) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

@media (max-width: 991.98px) {
  .landing-title {
    max-width: none;
  }

  .landing-stat-row,
  .landing-preview-shell,
  .landing-security-shell,
  .landing-security-grid,
  .landing-final-card {
    grid-template-columns: 1fr;
  }

  .landing-final-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .landing-hero {
    padding-top: 1rem;
  }

  .landing-title {
    font-size: 2.2rem;
  }

  .landing-subtitle {
    font-size: 1.02rem;
  }

  .landing-proofband span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .landing-preview-card,
  .landing-framework-card,
  .landing-audience-card,
  .landing-proof-card,
  .landing-final-card,
  .landing-security-card,
  .landing-security-shell {
    border-radius: 1rem;
  }
}
