﻿/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* "Compliant / good" status is intentionally neutral, not green — this
     app deliberately has no green anywhere in its palette. Token name kept
     as --green for backward compatibility with existing class names
     (.status-dot.green, .dash-status-badge.good) so app.js's status logic
     didn't need to change, only what color it renders. */
  --green: #1e293b;
  --green-bg: #f1f5f9;
  --yellow: #eab308;
  --yellow-bg: #fefce8;
  --red: #ef4444;
  --red-bg: #fef2f2;
  --bg: #f0f4f8;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #d1d5db;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow: hidden;
  height: 100vh;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ── TOP BAR ──────────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-shrink: 0;
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-left h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  display: none;
}

.header-centre {
  flex: 1;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.search-row {
  display: flex;
  gap: 6px;
}

#search-input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color 0.15s;
  font-family: inherit;
}

#search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 50;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 4px;
}

.search-dropdown .result-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

.search-dropdown .result-item:last-child {
  border-bottom: none;
}

.search-dropdown .result-item:hover {
  background: var(--bg);
}

.result-item .ri-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.result-item .ri-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#btn-account {
  padding: 8px 12px;
  font-size: 0.85rem;
}

#account-msg.error {
  color: #b91c1c;
}

#account-msg.success {
  color: #1e293b;
}

.icon-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: background 0.15s;
}

.icon-btn:hover {
  background: var(--bg);
}

/* ── WORKSPACE ───────────────────────────────────────────── */
.workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── LEFT PANEL ──────────────────────────────────────────── */
.left-panel {
  width: 260px;
  min-width: 260px;
  background: #f9fafb;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.panel-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.panel-header h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recent-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.recent-item {
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.1s;
  margin-bottom: 4px;
}

.recent-item:hover {
  background: #e5e7eb;
}

.recent-item.active {
  background: #dbeafe;
}

.recent-item .ri-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.recent-item .ri-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.recent-item .ri-status {
  font-size: 0.75rem;
  margin-top: 2px;
}

.panel-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.panel-footer .hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── CENTRE PANEL ────────────────────────────────────────── */
.centre-panel {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  background: var(--card-bg);
}

/* Warning */
.warning-banner {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #92400e;
}

.warning-banner a {
  color: var(--primary);
  text-decoration: underline;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto;
}

/* Loading */
.loading {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

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

/* Dashboard */
.dashboard {
  max-width: 800px;
  margin: 0 auto;
}

/* Company Header */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.dash-company h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.dash-number {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: "SF Mono", "Consolas", monospace;
}

.dash-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.dash-status-badge.good {
  background: var(--green-bg);
  color: #1e293b;
}

.dash-status-badge.warning {
  background: var(--yellow-bg);
  color: #854d0e;
}

.dash-status-badge.bad {
  background: var(--red-bg);
  color: #991b1b;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.green {
  background: var(--green);
}
.status-dot.yellow {
  background: var(--yellow);
}
.status-dot.red {
  background: var(--red);
}

/* Prep Warning */
.prep-banner {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #92400e;
  font-weight: 500;
}

.prep-icon {
  font-size: 1.2rem;
}

/* Compliance Cards */
.dash-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.compliance-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #f9fafb;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.card-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.card-body {
  margin-bottom: 8px;
}

.card-due {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.card-countdown {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.tooltip-trigger {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tooltip-trigger:hover {
  color: var(--primary-hover);
}

/* Company Details */
.dash-details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

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

.detail-label {
  width: 180px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.detail-value {
  font-size: 0.85rem;
  color: var(--text);
}

/* Action */
.dash-action {
  text-align: center;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.action-btn {
  font-size: 1.05rem;
  padding: 12px 32px;
}

.action-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.primary-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  font-family: inherit;
}

.primary-btn:hover {
  background: var(--primary-hover);
}

.secondary-btn {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}

.secondary-btn:hover {
  background: var(--bg);
}

/* ── Tooltip Modal ───────────────────────────────────────── */
.tooltip-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.tooltip-content {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  width: 480px;
  max-width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.tooltip-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.tooltip-content .kq {
  margin-bottom: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.tooltip-content .kq:last-child {
  margin-bottom: 0;
}

.tooltip-content .kq-label {
  font-weight: 600;
  color: var(--text);
}

.tooltip-content .secondary-btn {
  margin-top: 16px;
  width: 100%;
}

/* ── Modal ───────────────────────────────────────────────── */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.modal.hidden,
.tooltip-modal.hidden {
  display: none;
}

.modal-content {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  width: 480px;
  max-width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.modal-content label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.modal-content input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-bottom: 6px;
  font-family: inherit;
}

.modal-content input:focus {
  outline: none;
  border-color: var(--primary);
}

.password-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-row input {
  flex: 1;
  margin-bottom: 0;
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  padding: 4px 2px;
}

.link-btn:hover {
  text-decoration: underline;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.privacy-notice {
  margin-top: 20px;
  padding: 14px;
  background: #f0f9ff;
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.4;
  border: 1px solid #bae6fd;
}

.privacy-notice h4 {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.hidden {
  display: none !important;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 10px 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

footer a {
  color: var(--text-muted);
  text-decoration: underline;
}

footer a:hover {
  color: var(--primary);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .header-centre {
    order: 3;
    max-width: 100%;
    flex: 1 1 100%;
  }
  .left-panel {
    width: 200px;
    min-width: 200px;
  }
  .centre-panel {
    padding: 16px;
  }
  .dash-cards {
    grid-template-columns: 1fr;
  }
  .dash-header {
    flex-direction: column;
    gap: 8px;
  }
  .detail-row {
    flex-direction: column;
    gap: 2px;
  }
  .detail-label {
    width: auto;
  }
}

/* ── Value Props ─────────────────────────────────────────── */
.value-props {
  text-align: left;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.vp-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.vp-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vp-item {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.sample-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: inherit;
}

.sample-link:hover {
  color: var(--primary-hover);
}

/* ── Sample Certificate Modal ────────────────────────────── */
.sample-content {
  width: 92vw;
  max-width: 900px;
  padding: 16px 20px;
}

.sample-content h4 {
  text-align: center;
  margin-bottom: 8px;
}

.sample-certificate {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 30px 20px;
  margin: 8px 0;
  text-align: center;
  font-size: 0.85rem;
  position: relative;
}

.sample-seal {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1e293b;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.sample-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a3050;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}

.sample-subtitle {
  font-size: 0.7rem;
  color: #64748b;
  margin-bottom: 18px;
}

.sample-company {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c4a75;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.sample-number {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 14px;
}

.sample-status {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0;
  padding: 0;
  border: none;
}

/* Divider line */
.sample-divider {
  border: none;
  border-top: 1px solid #d1d5db;
  margin: 14px auto;
  width: 85%;
}

/* Two column layout - centered */
.sample-two-col {
  display: flex;
  gap: 30px;
  text-align: left;
  margin: 0 auto 14px;
  padding: 0;
  width: 85%;
  border: none;
}

.sample-two-col .sample-col {
  flex: 1;
}

.sample-two-col .sc-row {
  display: flex;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
}

.sample-two-col .sc-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-width: 110px;
  flex-shrink: 0;
  border: none;
  padding: 0;
  margin: 0;
}

.sample-two-col .sc-value {
  font-size: 0.8rem;
  color: #0f172a;
  font-weight: 500;
  margin: 0;
}

/* Verification footer */
.sample-verify {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  margin: 0 auto 10px;
  width: 85%;
  border-top: 1px solid #d1d5db;
  border-bottom: 1px solid #d1d5db;
}

.sample-verify .sv-code {
  font-family: "SF Mono", "Consolas", monospace;
  font-size: 0.75rem;
  color: #0f172a;
}

.sample-verify .sv-seal {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0;
}

.sample-footer {
  font-size: 0.65rem;
  color: #64748b;
  font-style: italic;
  border: none;
  padding: 0;
  width: 85%;
  margin: 0 auto;
  line-height: 1.4;
}

.sample-note {
  font-size: 0.7rem;
  color: #64748b;
  font-style: italic;
  text-align: center;
  margin: 8px 0;
}

.sample-content .primary-btn {
  margin-top: 0;
  width: 100%;
}

/* Make the modal backdrop fit full screen */
.tooltip-modal {
  align-items: center;
}

/* ═══════════════════════════════════════════════════════════
   LANDING PAGE STYLES
   ═══════════════════════════════════════════════════════════ */

/* ── Navigation Bar ───────────────────────────────────────── */
.header-nav {
  display: flex;
  gap: 24px;
  margin-left: 32px;
}

.header-nav .nav-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s,
    border-color 0.15s;
}

.header-nav .nav-link:hover {
  color: var(--text);
}

.header-nav .nav-link.active {
  color: var(--text);
  border-bottom-color: var(--primary);
}

/* ── Account Banner ───────────────────────────────────────── */
.account-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px;
  background: #1e293b;
  color: #ffffff;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.account-banner.hidden {
  display: none;
}
.banner-status {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}
.banner-status.confirmed {
  background: #2563eb;
  color: #ffffff;
}
.banner-status.pending {
  background: #f59e0b;
  color: #1e293b;
}
.banner-logout-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid #475569;
  color: #94a3b8;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
}
.banner-logout-btn:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1e293b;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark-img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text h1 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.brand-text .tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
  display: block;
  white-space: nowrap;
}

/* ── Main Content ─────────────────────────────────────────── */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.view {
  width: 100%;
  height: 100%;
}

.view.hidden {
  display: none;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff;
  padding: 64px 24px 48px;
  text-align: center;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.text-green {
  color: #60a5fa;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  position: relative;
  max-width: 520px;
  margin: 0 auto 28px;
}

.hero-search-row {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-search-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.hero-search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.hero-btn {
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 6px;
}

.hero-trust {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.8rem;
  color: #94a3b8;
  flex-wrap: wrap;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Section Base ─────────────────────────────────────────── */
.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
}

/* ── How It Works ─────────────────────────────────────────── */
.how-section {
  padding: 56px 0;
  background: var(--card-bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  text-align: center;
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s;
}

.step-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1e293b;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.step-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Certificate Preview ──────────────────────────────────── */
.preview-section {
  padding: 56px 0;
  background: var(--bg);
}

.preview-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.preview-inner {
  text-align: center;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.preview-logo {
  width: 60px;
  height: 24px;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  color: #94a3b8;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.preview-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.preview-qr-placeholder {
  width: 40px;
  height: 40px;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  color: #94a3b8;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.preview-company {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.preview-number {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 12px;
}

.preview-status {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.preview-cols {
  display: flex;
  gap: 24px;
  text-align: left;
  width: 85%;
  margin: 0 auto 12px;
}

.preview-col {
  flex: 1;
}

.preview-col > div {
  display: flex;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.75rem;
}

.preview-label {
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-width: 100px;
  font-size: 0.65rem;
}

.preview-val {
  color: #0f172a;
  font-weight: 500;
  font-size: 0.75rem;
}

.preview-verify {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  margin: 0 auto;
  width: 85%;
  border-top: 1px solid #d1d5db;
  border-bottom: 1px solid #d1d5db;
  font-size: 0.7rem;
}

.preview-code {
  font-family: "SF Mono", "Consolas", monospace;
  color: #0f172a;
}

.preview-seal {
  color: #1e293b;
  font-weight: 700;
}

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-section {
  padding: 56px 0;
  background: var(--card-bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: #1e293b;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 12px;
  border-radius: 8px;
}

.pricing-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.pricing-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pricing-list {
  list-style: none;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pricing-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Trust Section ────────────────────────────────────────── */
.trust-section {
  padding: 56px 0;
  background: #f8fafc;
  border-top: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-item {
  text-align: center;
  padding: 20px;
}

.trust-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.trust-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Install Banner ───────────────────────────────────────── */
.install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e293b;
  color: #fff;
  z-index: 50;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.install-banner.hidden {
  display: none;
}

.install-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
}

.install-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.install-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #cbd5e1;
}

.install-text strong {
  color: #fff;
}

.install-dismiss {
  background: transparent;
  color: #94a3b8;
  border-color: #475569;
  font-size: 0.85rem;
  padding: 8px 16px;
}

.install-dismiss:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* ── Landing Footer ───────────────────────────────────────── */
.landing-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.landing-footer a {
  color: var(--text-muted);
  text-decoration: underline;
}

.landing-footer a:hover {
  color: var(--primary);
}


/* ── Workspace Search Row (inside centre panel) ──────────── */
.workspace-search-row {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  position: relative;
}

.workspace-search-row #workspace-search-input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color 0.15s;
  font-family: inherit;
}

.workspace-search-row #workspace-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ── Landing view scroll ──────────────────────────────────── */
.landing-view {
  overflow-y: auto;
  height: 100%;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .install-banner-inner {
    flex-wrap: wrap;
    text-align: center;
  }

  .hero-trust {
    flex-direction: column;
    gap: 8px;
  }

  .preview-cols {
    flex-direction: column;
    width: 100%;
  }
}

/* ── Preview Card: clickable with OPEN SAMPLE overlay ─────── */
.preview-card-container {
  position: relative;
  cursor: pointer;
  display: inline-block;
  width: 100%;
}

.preview-card {
  position: relative;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.preview-card-container:hover .preview-card {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.preview-card-container:active .preview-card {
  transform: translateY(0);
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 41, 59, 0.7);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
}

.preview-card-container:hover .preview-overlay {
  opacity: 1;
}

.preview-overlay-btn {
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Dual prong actions */
.preview-actions {
  text-align: center;
  margin-top: 24px;
}

.preview-actions .primary-btn {
  font-size: 1.05rem;
  padding: 12px 32px;
}

.action-subtext {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 10px;
  font-style: italic;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Pricing MVP badge: clickable / interactive ──────────── */
#pricing-badge-mvp {
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s;
}

#pricing-badge-mvp:hover {
  background: #2563eb;
  transform: translateX(-50%) scale(1.05);
}

#pricing-card-pay {
  cursor: pointer;
  transition:
    box-shadow 0.15s,
    transform 0.1s;
}

#pricing-card-pay:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* ── Help icon: distinctive styling ───────────────────────── */
#btn-help {
  border-color: #2563eb;
  color: #2563eb;
  font-weight: 700;
  font-size: 1rem;
  width: 36px;
  padding: 8px;
  text-align: center;
}

#btn-help:hover {
  background: rgba(37, 99, 235, 0.08);
}

/* ── Legal pages (privacy / terms / refund) ──────────────── */
.legal-body {
  overflow-y: auto;
  height: 100%;
}
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.legal-back {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.legal-back:hover {
  text-decoration: underline;
}
.legal-wrap h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.legal-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.legal-disclaimer {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}
.legal-wrap h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 8px;
}
.legal-wrap p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 12px;
}
.legal-wrap ul {
  margin: 0 0 12px 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #334155;
}
.legal-wrap li {
  margin-bottom: 4px;
}
.legal-wrap a {
  color: var(--primary);
}
.legal-footer-nav {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}
.legal-footer-nav a {
  color: var(--primary);
  text-decoration: none;
}
.legal-footer-nav a:hover {
  text-decoration: underline;
}

/* ── Workspace search placeholder ────────────────────────── */
.workspace-search-row #workspace-search-input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color 0.15s;
  font-family: inherit;
}

.workspace-search-row #workspace-search-input::placeholder {
  color: #94a3b8;
  font-style: italic;
}
