/* Consonia — Shared styles across demo screens */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500&family=Inter:wght@300;400;500&display=swap');

:root {
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --ink-muted: #6b6b6b;
  --ink-faint: #a8a8a8;
  --paper: #fafaf7;
  --paper-warm: #f4f2ec;
  --paper-warmer: #ebe8df;
  --line: #1a1a1a;
  --line-soft: rgba(26, 26, 26, 0.12);
  --line-softer: rgba(26, 26, 26, 0.06);
  --accent: #8a6d3b;
  --accent-soft: rgba(138, 109, 59, 0.08);
  --good: #4a6b3e;
  --good-soft: rgba(74, 107, 62, 0.10);
  --partial: #8a6d3b;
  --partial-soft: rgba(138, 109, 59, 0.10);
  --absent: #8a8a8a;
  --absent-soft: rgba(138, 138, 138, 0.08);
  --align: #2d4a5a;
  --align-soft: rgba(45, 74, 90, 0.08);
  --complement: #6b4a5a;
  --complement-soft: rgba(107, 74, 90, 0.08);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 720px) {
  .container { padding: 0 24px; }
}

/* ===== TOP NAV ===== */
.top-nav {
  padding: 24px 0;
  border-bottom: 0.5px solid var(--line-soft);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(250, 250, 247, 0.94);
}

.top-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-nav-logo {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.top-nav-tabs {
  display: flex;
  gap: 2px;
  background: var(--paper-warm);
  padding: 4px;
  border-radius: 4px;
}

.top-nav-tab {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 8px 14px;
  font-weight: 400;
  white-space: nowrap;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.top-nav-tab:hover {
  color: var(--ink);
  opacity: 1;
}

.top-nav-tab.active {
  background: var(--ink);
  color: var(--paper);
  opacity: 1;
}

.top-nav-tab.active:hover {
  opacity: 1;
}

.top-nav-meta {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.3px;
}

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

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 56px 0 40px;
  border-bottom: 0.5px solid var(--line-soft);
}

.page-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
  font-weight: 400;
}

.page-title {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 800px;
}

.page-title em {
  font-style: italic;
  color: var(--accent);
}

.page-lead {
  font-size: 17px;
  line-height: 1.7;
  max-width: 640px;
  color: var(--ink-soft);
  font-weight: 300;
}

.page-context {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--paper-warm);
  border-left: 2px solid var(--accent);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 720px;
}

.page-context strong {
  color: var(--ink);
  font-weight: 500;
}

.page-context-label {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 500;
}

@media (max-width: 720px) {
  .page-header { padding: 32px 0 24px; }
  .page-title { font-size: 28px; }
}

/* ===== SECTION ===== */
.section {
  padding: 56px 0;
  border-bottom: 0.5px solid var(--line-soft);
}

.section:last-of-type {
  border-bottom: none;
}

.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
  font-weight: 400;
}

.section-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 12px;
}

.section-lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 32px;
}

/* ===== BUTTONS ===== */
.btn {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 14px 28px;
  border: 0.5px solid var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  text-align: center;
}

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

.btn-primary:hover {
  background: transparent;
  color: var(--ink);
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--paper-warm);
  opacity: 1;
}

.btn-ghost {
  color: var(--ink-soft);
  padding: 14px 0;
  border: none;
  border-bottom: 0.5px solid var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 400;
}

.btn-small {
  font-size: 11px;
  letter-spacing: 1px;
  padding: 8px 14px;
}

.btn-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ===== CARDS ===== */
.card {
  background: var(--paper);
  border: 0.5px solid var(--line-soft);
  padding: 24px;
  transition: all 0.2s ease;
}

.card-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 8px;
}

.card-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ===== BADGES / TAGS ===== */
.tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  font-weight: 500;
}

.tag-align {
  background: var(--align-soft);
  color: var(--align);
}

.tag-complement {
  background: var(--complement-soft);
  color: var(--complement);
}

.tag-weight {
  background: var(--paper-warm);
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.tag-good {
  background: var(--good-soft);
  color: var(--good);
}

.tag-partial {
  background: var(--partial-soft);
  color: var(--partial);
}

.tag-absent {
  background: var(--absent-soft);
  color: var(--absent);
}

/* ===== FOOTER ===== */
footer {
  padding: 40px 0 32px;
  border-top: 0.5px solid var(--line-soft);
  background: var(--paper-warm);
  margin-top: 80px;
}

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

.footer-logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.footer-meta {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 300;
}

.footer-note {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ===== UPLOAD DROPZONE ===== */
.dropzone {
  border: 1.5px dashed var(--line-soft);
  background: var(--paper-warm);
  padding: 56px 32px;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  margin-bottom: 32px;
}

.dropzone:hover {
  border-color: var(--ink);
  background: var(--paper-warmer);
}

.dropzone-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  opacity: 0.5;
}

.dropzone-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
}

.dropzone-sub {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.dropzone-formats {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ===== FILE LIST ===== */
.file-list {
  margin-bottom: 32px;
}

.file-item {
  display: grid;
  grid-template-columns: 40px 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--paper);
  border: 0.5px solid var(--line-soft);
  border-radius: 4px;
  margin-bottom: 8px;
}

.file-icon {
  width: 32px;
  height: 32px;
  background: var(--paper-warm);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.file-info {
  min-width: 0;
}

.file-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  font-size: 12px;
  color: var(--ink-muted);
}

.file-role {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 400;
}

.file-status {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--good);
  font-weight: 500;
}

.file-action {
  font-size: 12px;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.file-action:hover {
  color: var(--ink);
}

/* ===== FORM INPUTS ===== */
.input {
  width: 100%;
  padding: 12px 16px;
  border: 0.5px solid var(--line-soft);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  transition: all 0.2s ease;
}

.input:focus {
  border-color: var(--ink);
  background: var(--paper);
}

.input-label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.input-group {
  margin-bottom: 24px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 720px) {
  .input-row { grid-template-columns: 1fr; }
}

/* ===== UTILITY ===== */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--ink-muted); }
.text-soft { color: var(--ink-soft); }
.text-small { font-size: 13px; }
.text-center { text-align: center; }
