/* ─── DESIGN TOKENS (matches index.html exactly) ─── */
:root {
  --white:        #16140f;
  --off-white:    #1e1c16;
  --paper:        #252218;
  --ink:          #f2edd8;
  --ink-light:    #b8b49e;
  --ink-faint:    #8c8878;
  --accent:       #d97757;
  --amber:        #d97757;
  --amber-light:  rgba(217,119,87,0.10);
  --amber-border: rgba(217,119,87,0.28);
  --green:        #4ade80;
  --green-light:  rgba(74,222,128,0.12);
  --red:          #f87171;
  --red-light:    rgba(248,113,113,0.12);
  --border:       #2c2a22;
  --border-dark:  #3a3830;
  --radius:       4px;
  --radius-lg:    12px;
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.15);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.20);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.25);
}

.nav-links a.nav-active { color: var(--amber); }

/* ─── HERO SINGLE (centered, different from index.html 2-col) ─── */
.hero-single {
  padding: 72px max(24px, calc(50% - 580px)) 64px;
  text-align: center;
}

.hero-single-inner {
  max-width: 680px;
  margin: 0 auto;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── TOOL AREA ─── */
.tool-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.drop-zone {
  border: 1.5px dashed var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s cubic-bezier(0.16,1,0.3,1), background 0.25s;
  background: var(--off-white);
  position: relative;
}

.drop-icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  background: var(--paper);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), background 0.25s;
}

.drop-formats {
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
  margin-top: 8px;
}

/* ─── PROCESSING PANEL ─── */
.proc-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.proc-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border-dark);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.proc-text { font-size: 0.875rem; color: var(--ink-light); }

.proc-filename { font-weight: 500; color: var(--ink); display: block; }

/* ─── RESULT PANEL ─── */
.result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.result-icon { flex-shrink: 0; }

.result-filename {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  flex-shrink: 0;
}

.cred-badge--trusted { background: var(--green-light); color: var(--green); }

.cred-badge--valid   { background: var(--amber-light); color: var(--amber); }

.cred-badge--invalid { background: var(--red-light);   color: var(--red); }

.cred-badge--none    { background: var(--off-white);   color: var(--ink-faint); border: 1px solid var(--border); }

.result-thumb {
  display: block;
  max-width: 280px;
  max-height: 220px;
  width: auto;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: contain;
}

/* ─── CREDENTIAL CARDS ─── */
.cred-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
}

.cred-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.cred-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-light);
  letter-spacing: 0.03em;
}

.cred-card-icon { color: var(--ink-faint); flex-shrink: 0; }

.cred-card-body { padding: 0; }

.cred-table { width: 100%; border-collapse: collapse; }

.cred-table tr:not(:last-child) td { border-bottom: 1px solid var(--border); }

.cred-table td { padding: 10px 16px; vertical-align: top; }

.cred-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  width: 38%;
  white-space: nowrap;
}

.cred-value {
  font-size: 0.875rem;
  color: var(--ink);
  word-break: break-word;
}

.cred-value--mono {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.78rem;
  color: var(--amber);
}

.cred-value--ai {
  color: var(--amber);
  font-weight: 500;
}

/* ─── VALIDATION DETAIL ROWS ─── */
.validation-error-row {
  padding: 8px 16px;
  background: var(--red-light);
  border-top: 1px solid rgba(248,113,113,0.2);
}

.validation-code {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--red);
  margin-bottom: 2px;
}

.validation-message {
  font-size: 0.82rem;
  color: var(--ink-light);
}

/* ─── MANIFEST JSON VIEWER ─── */
.manifest-viewer {
  max-height: 260px;
  overflow-y: auto;
  padding: 14px 16px;
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.manifest-viewer pre {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.7rem;
  color: var(--ink-faint);
  white-space: pre;
  line-height: 1.6;
}

/* ─── NO CREDENTIALS STATE ─── */
.no-cred-body {
  padding: 28px 20px;
  text-align: center;
}

.no-cred-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.no-cred-desc {
  font-size: 0.875rem;
  color: var(--ink-light);
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto;
}

/* ─── INGREDIENTS LIST ─── */
.ingredient-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--ink);
}

.ingredient-row:last-child { border-bottom: none; }

.ingredient-rel {
  font-size: 0.7rem;
  background: var(--amber-light);
  color: var(--amber);
  border-radius: 3px;
  padding: 2px 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.section-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink-light);
  max-width: 560px;
  line-height: 1.7;
}

/* ─── WHAT ARE CONTENT CREDENTIALS ─── */
.prose-section { background: var(--off-white); }

.prose-body {
  margin-top: 40px;
  max-width: 720px;
}

.prose-body p {
  font-size: 0.95rem;
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 18px;
  font-weight: 300;
}

.prose-body p:last-child { margin-bottom: 0; }

/* ─── HOW C2PA WORKS (numbered steps) ─── */
.how-section { background: var(--paper); }

.c2pa-steps {
  list-style: none;
  margin-top: 56px;
  border-top: 1px solid var(--border-dark);
}

.c2pa-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 44px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.c2pa-step-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  padding-top: 3px;
}

.c2pa-step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.c2pa-step-desc {
  font-size: 0.875rem;
  color: var(--ink-light);
  line-height: 1.65;
  font-weight: 300;
}

/* ─── STATES EXPLAINED (3 cards) ─── */
.states-section { background: var(--off-white); }

.states-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.state-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.state-card-badge { margin-bottom: 16px; }

.state-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.state-card-desc {
  font-size: 0.875rem;
  color: var(--ink-light);
  line-height: 1.65;
  font-weight: 300;
}

/* ─── AI DETECTION ─── */
.ai-section { background: var(--paper); }

.ai-type-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-type-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.ai-type-code {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.78rem;
  background: var(--off-white);
  color: var(--amber);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  white-space: nowrap;
  line-height: 1.6;
}

.ai-type-desc {
  font-size: 0.875rem;
  color: var(--ink-light);
  font-weight: 300;
  line-height: 1.6;
  padding-top: 3px;
}

/* ─── WHICH TOOLS ─── */
.tools-section { background: var(--off-white); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 48px;
}

.tool-item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s cubic-bezier(0.16,1,0.3,1);
}

.tool-item:hover { border-color: var(--amber-border); }

.tool-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.tool-item-desc {
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.6;
  font-weight: 300;
}

.tool-examples {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ─── REMOVED / FAKED (2-col split like disclaimer in index.html) ─── */
.removed-section { background: var(--paper); }

.removed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.removed-col {
  padding: 32px 36px;
}

.removed-col:first-child { background: rgba(74,222,128,0.10); }

.removed-col:last-child  { background: rgba(248,113,113,0.10); }

.removed-sub {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.removed-col:first-child .removed-sub { color: var(--green); }

.removed-col:last-child  .removed-sub { color: var(--red); }

.removed-col p {
  font-size: 0.875rem;
  color: var(--ink-light);
  line-height: 1.65;
  font-weight: 300;
}

/* ─── WHY VERIFY (numbered list like usecases in index.html) ─── */
.why-section { background: var(--off-white); }

.why-list {
  list-style: none;
  margin-top: 56px;
  border-top: 1px solid var(--border-dark);
}

.why-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 44px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.why-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  padding-top: 3px;
}

.why-title { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }

.why-desc  { font-size: 0.875rem; color: var(--ink-light); line-height: 1.65; font-weight: 300; }

/* ─── EU AI ACT ─── */
.eu-section { background: var(--paper); }

.eu-body {
  margin-top: 40px;
  max-width: 720px;
}

.eu-body p {
  font-size: 0.95rem;
  color: var(--ink-light);
  line-height: 1.8;
  margin-bottom: 18px;
  font-weight: 300;
}

.law-quote {
  border-left: 3px solid var(--amber);
  padding: 16px 24px;
  margin: 28px 0;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-light);
  line-height: 1.75;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.15s;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px max(24px, calc(50% - 580px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #0d0c08;
}

/* ─── SCROLL REVEALS ─── */
[data-reveal] {
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

[data-reveal].is-hidden { opacity: 0; transform: translateY(24px); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq-header { position: static; }
  .states-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .removed-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-single { padding-top: 48px; padding-bottom: 48px; }
  .c2pa-step { grid-template-columns: 48px 1fr; gap: 0 24px; }
  .why-item  { grid-template-columns: 48px 1fr; gap: 0 24px; }
  .tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav-links { display: none; }
  .nav-github { display: none; }
  .nav-hamburger { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge::before { animation: none; }
  .proc-spinner { animation: none; border-color: var(--border-dark); border-top-color: var(--amber); }
  [data-reveal].is-hidden { opacity: 1; transform: none; transition: none; }
  .faq-answer { transition: none; }
}
