.hp-hero-section {
  background: #fafafa;
  padding: 52px 0 44px;
}

.hp-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(30, 92, 151, 0.08);
  color: #1e5c97;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(30, 92, 151, 0.15);
  margin-bottom: 16px;
}

.hp-pill svg {
  width: 16px;
  height: 16px;
  color: #d4932e;
}

.hp-headline {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1a1a2e;
  margin-bottom: 16px;
}

.hp-headline-gradient {
  background: linear-gradient(135deg, #1e5c97, #3a86d2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-subtitle {
  font-size: 0.88rem;
  color: #4b5563;
  max-width: 640px;
  margin: 0 auto 32px;
  font-weight: 500;
}

.hp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e5c97;
  color: #fff;
  border-radius: 9999px;
  padding: 7px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(30, 92, 151, 0.22);
  transition: background 0.2s;
}

.hp-cta-btn:hover {
  background: #154675;
  color: #fff;
  text-decoration: none;
}

.hp-cta-btn:focus-visible {
  outline: 3px solid #3a86d2;
  outline-offset: 3px;
}

.hp-video-wrap {
  max-width: 1000px;
  margin: 28px auto 0;
  position: relative;
}

.hp-video-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 92, 151, 0.1), rgba(212, 147, 46, 0.1));
  border-radius: 24px;
  transform: rotate(1deg) scale(1.05);
  filter: blur(32px);
  opacity: 0.6;
}

.hp-video-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  background: #fff;
}

.hp-video-frame video {
  width: 100%;
  display: block;
}

.hp-quote-section {
  max-width: 750px;
  margin: 34px auto 0;
  text-align: center;
  padding: 0 32px;
}

.hp-quote-text {
  font-size: 0.98rem;
  color: #475569;
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
}

.hp-quote-author {
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hp-logos-section {
  padding: 36px 0 0;
}

.hp-logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.hp-logos-row img {
  height: 24px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.hp-logos-row img:hover {
  opacity: 1;
}

.hp-section {
  padding: 62px 0;
}

.hp-section-white {
  background: #fff;
}

.hp-section-light {
  background: #fafafa;
}

.hp-section-white + .hp-section-light,
.hp-section-light + .hp-section-white {
  border-top: 1px solid #e5e7eb;
}

.hp-hiw-section {
  background: #fff;
  padding: 72px 0 64px;
  margin-top: 0;
  border-top: 1px solid #e5e7eb;
}

.hp-safe-section {
  background: #111827;
  padding-top: 72px;
  margin-top: 0;
  border-top: 1px solid #e5e7eb;
}

.hp-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #d4932e;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-align: center;
}

.hp-section-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  max-width: 750px;
  margin: 0 auto 16px;
  line-height: 1.25;
}

.hp-section-subtitle {
  font-size: 0.95rem;
  color: #4b5563;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hp-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 56px auto 0;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .hp-cards-grid {
    grid-template-columns: 1fr;
  }
  .hp-headline {
    font-size: 2.2rem;
  }
  .hp-section-title {
    font-size: 1.35rem;
  }
  .hp-pvp-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
    margin-top: 32px;
    overflow: hidden;
  }
  .hp-pvp-items {
    grid-template-columns: 1fr 1fr;
  }
  .hp-pvp-text,
  .hp-pvp-req-title,
  .hp-pvp-req-desc,
  .hp-pvp-req-label {
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .hp-pvp-text {
    margin-bottom: 16px;
  }
  .hp-pvp-closing {
    font-size: 0.95rem;
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .hp-pvp-items {
    grid-template-columns: 1fr;
  }
  .hp-pvp-item {
    font-size: 0.8rem;
  }
  .hp-pvp-req-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }
}

.hp-demo-card {
  background: #0d1117;
  border-radius: 12px;
  border: 1px solid #30363d;
  overflow: hidden;
}

.hp-demo-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid #30363d;
  background: #161b22;
}

.hp-demo-card-header .card-icon {
  width: 16px;
  height: 16px;
  color: #1e5c97;
}

.hp-demo-card-header .card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.hp-demo-card-header .card-badge {
  font-size: 0.62rem;
  color: #8b949e;
  margin-left: auto;
  font-family: monospace;
}

.hp-demo-visual {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1));
  overflow: hidden;
}

.hp-demo-visual .emoji-layer {
  position: absolute;
  font-size: 48px;
  opacity: 0.12;
}

.hp-bbox {
  position: absolute;
  border: 2px solid;
  border-radius: 4px;
  animation: bboxFadeIn 0.7s ease-out forwards;
  opacity: 0;
}

.hp-bbox-label {
  position: absolute;
  top: -20px;
  left: 0;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-family: monospace;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

@keyframes bboxFadeIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.hp-bbox-1 { animation-delay: 0.3s; }
.hp-bbox-2 { animation-delay: 0.6s; }
.hp-bbox-3 { animation-delay: 0.9s; }

.hp-text-demo {
  padding: 14px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hp-text-sample {
  background: #161b22;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #30363d;
  margin-bottom: 12px;
  font-family: monospace;
  font-size: 0.68rem;
  color: #c9d1d9;
  line-height: 1.5;
}

.hp-confidence-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.hp-confidence-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hp-confidence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hp-confidence-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
}

.hp-confidence-pct {
  font-size: 0.68rem;
  font-family: monospace;
  font-weight: 700;
}

.hp-confidence-bar {
  width: 100%;
  height: 8px;
  background: #21262d;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.hp-confidence-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.7s ease-out;
}

.hp-alt-labels {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.hp-alt-labels span {
  font-size: 9px;
  color: #8b949e;
  font-family: monospace;
}

.hp-struct-table {
  padding: 10px;
}

.hp-struct-table table {
  width: 100%;
  font-family: monospace;
  font-size: 10px;
}

.hp-struct-table th {
  text-align: left;
  padding: 4px 8px;
  color: #8b949e;
  font-weight: 500;
}

.hp-struct-table th:last-child {
  text-align: right;
}

.hp-struct-table td {
  padding: 6px 8px;
  border-top: 1px solid rgba(48, 54, 61, 0.5);
}

.hp-struct-table td:last-child {
  text-align: right;
}

.hp-struct-result {
  margin: 0 10px 10px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 12px;
}

.hp-demo-tags {
  padding: 12px 16px;
  border-top: 1px solid #30363d;
}

.hp-demo-tags p {
  font-size: 0.68rem;
  color: #8b949e;
  margin-bottom: 6px;
}

.hp-demo-tags .tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hp-demo-tags .tag {
  font-size: 9px;
  font-weight: 500;
  color: #8b949e;
  background: #21262d;
  border-radius: 4px;
  padding: 2px 8px;
}

.hp-pvp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 48px auto 0;
  padding: 0 24px;
  align-items: start;
}

.hp-pvp-text {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 20px;
}

.hp-pvp-text strong {
  color: #1a1a2e;
}

.hp-pvp-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hp-pvp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #f1f5f9;
}

.hp-pvp-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1e5c97;
  flex-shrink: 0;
}

.hp-pvp-req-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.hp-pvp-req {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.hp-pvp-req-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(30, 92, 151, 0.08);
  border: 1px solid rgba(30, 92, 151, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hp-pvp-req-icon svg {
  width: 16px;
  height: 16px;
  color: #1e5c97;
}

.hp-pvp-req-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.2;
  margin-bottom: 2px;
}

.hp-pvp-req-desc {
  font-size: 0.72rem;
  color: #6b7280;
  line-height: 1.35;
  margin-top: 0;
}

.hp-pvp-closing {
  text-align: center;
  margin-top: 48px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e5c97;
}

/* ── Tabbed Classifier Demo ─────────────────────────────── */
.hp-tab-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  overflow: hidden;
  margin-top: 40px;
}

.hp-tab-bar {
  display: flex;
  border-bottom: 1px solid #e8edf3;
  background: #f8fafc;
}

.hp-tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 22px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: Jost, sans-serif;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}

.hp-tab-btn:hover {
  color: #334155;
}

.hp-tab-active {
  font-weight: 700;
  color: #1e5c97;
  background: #fff;
  border-bottom-color: #1e5c97;
}

.hp-tab-panel {
  padding: 28px 32px;
}

@keyframes hp-tab-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hp-tab-entering {
  animation: hp-tab-fade-in 0.22s ease-out both;
}

.hp-panel-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.hp-panel-input {
  flex: 0 0 210px;
}

.hp-input-preview {
  position: relative;
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
}

.hp-input-preview--image {
  background: #f0f6ff;
  border: 2px solid rgba(30,92,151,0.13);
  padding: 0;
  overflow: hidden;
}

.hp-group-photo {
  width: 100%;
  display: block;
  border-radius: 10px 10px 0 0;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hp-input-preview--image .hp-input-filename,
.hp-input-preview--image .hp-input-meta {
  padding: 6px 12px 2px;
  text-align: left;
}

.hp-input-preview--image .hp-input-meta {
  padding-bottom: 10px;
}

.hp-input-preview--text {
  background: #fef2f2;
  border: 2px solid rgba(239,68,68,0.13);
  text-align: left;
}

.hp-input-preview--data {
  background: #f9fafb;
  border: 2px solid #e2e8f0;
  padding: 0;
  overflow: hidden;
}

.hp-check-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hp-input-filename {
  font-size: 0.72rem;
  color: #475569;
  font-weight: 500;
}

.hp-input-meta {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 2px;
}

.hp-input-file-label {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-bottom: 6px;
}

.hp-text-quote {
  font-size: 0.78rem;
  color: #334155;
  line-height: 1.55;
  border-left: 3px solid #ef4444;
  padding-left: 10px;
}

.hp-csv-header {
  background: #f1f5f9;
  padding: 7px 14px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
}

.hp-csv-table {
  width: 100%;
  border-collapse: collapse;
  font-family: monospace;
}

.hp-csv-table tr {
  border-top: 1px solid #f0f4f8;
}

.hp-csv-table td {
  padding: 6px 14px;
  font-size: 0.68rem;
}

.hp-csv-table td:first-child {
  color: #64748b;
}

.hp-csv-table td:last-child {
  color: #334155;
  text-align: right;
  font-weight: 600;
}

.hp-try-also {
  margin-top: 10px;
  font-size: 0.68rem;
  color: #64748b;
  text-align: center;
  line-height: 1.4;
}

.hp-panel-results {
  flex: 1;
}

.hp-top-result {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.hp-result-name {
  font-size: 0.94rem;
  font-weight: 800;
  color: #0f172a;
}

.hp-result-sublabel {
  font-size: 0.72rem;
  color: #64748b;
  margin-left: 8px;
}

.hp-result-pct {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hp-tbar-wrap {
  background: #f1f5f9;
  border-radius: 6px;
  height: 7px;
  overflow: hidden;
  margin-bottom: 16px;
}

.hp-tbar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
}

.hp-other-results {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}

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

.hp-other-label {
  font-size: 0.72rem;
  color: #94a3b8;
  min-width: 90px;
}

.hp-tbar-sm {
  flex: 1;
  height: 5px;
  margin-bottom: 0;
}

.hp-other-pct {
  font-size: 0.72rem;
  color: #94a3b8;
  min-width: 32px;
  text-align: right;
}

.hp-uses-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
}

.hp-uses-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.hp-uses-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.hp-use-tag {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
}

@media (max-width: 640px) {
  .hp-panel-inner {
    flex-direction: column;
  }
  .hp-panel-input {
    flex: none;
    width: 100%;
  }
  .hp-tab-btn {
    padding: 12px 14px;
    font-size: 0.75rem;
  }
  .hp-tab-panel {
    padding: 20px 16px;
  }
}
/* ── End Tabbed Classifier Demo ─────────────────────────── */

.hp-hiw-section {
  background: #fff;
  padding: 62px 0;
}

.hp-hiw-grid {
  display: flex;
  justify-content: center;
  gap: 28px;
  max-width: 1000px;
  margin: 48px auto 0;
  padding: 0 24px;
  flex-wrap: wrap;
}

.hp-hiw-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 240px;
  max-width: 300px;
}

.hp-hiw-card .icon-wrap {
  margin-bottom: 20px;
}

.hp-hiw-card .icon-wrap img {
  width: 64px;
  height: 64px;
}

.hp-hiw-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.hp-hiw-card p {
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.6;
}

.hp-safe-section {
  background: #fafafa;
  padding: 62px 0;
}

.hp-safe-grid {
  display: flex;
  justify-content: center;
  gap: 28px;
  max-width: 1000px;
  margin: 48px auto 0;
  padding: 0 24px;
  flex-wrap: wrap;
}

.hp-safe-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

.hp-safe-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 16px;
}

.hp-safe-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.hp-safe-card p {
  font-size: 0.76rem;
  color: #4b5563;
  line-height: 1.6;
}

/* ── Hero Product Mock ─────────────────────────────────── */
.hp-product-mock {
  background: #fff;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 0.78rem;
  line-height: 1.4;
}

/* Window chrome bar */
.hp-mock-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.hp-mock-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.hp-mock-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.hp-mock-url {
  flex: 1;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 0.7rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.hp-mock-deploy {
  font-size: 0.7rem;
  font-weight: 500;
  color: #1e5c97 !important;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 3px 10px;
  white-space: nowrap;
  text-decoration: none !important;
  flex-shrink: 0;
}

/* Body layout */
.hp-mock-body {
  display: flex;
  min-height: 280px;
}

/* Sidebar */
.hp-mock-sidebar {
  width: 170px;
  flex-shrink: 0;
  border-right: 1px solid #f1f5f9;
  padding: 14px 12px;
  background: #fafafa;
}

.hp-mock-fn-type {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 2px;
}

.hp-mock-fn-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 3px;
}

.hp-mock-meta {
  font-size: 0.68rem;
  color: #6b7280;
  margin-bottom: 10px;
}

.hp-mock-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 8px 0;
}

.hp-mock-labels-title {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #94a3b8;
  margin-bottom: 6px;
}

.hp-mock-labels {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hp-mock-lrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #374151;
}

.hp-mock-ldot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hp-mock-lname {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hp-mock-lcount {
  color: #94a3b8;
  font-size: 0.66rem;
  flex-shrink: 0;
}

.hp-mock-acc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.hp-mock-acc-label {
  font-size: 0.66rem;
  color: #6b7280;
}

.hp-mock-acc-val {
  font-size: 0.7rem;
  font-weight: 600;
  color: #16a34a;
}

.hp-mock-acc-bar {
  height: 5px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.hp-mock-acc-fill {
  height: 100%;
  background: #16a34a;
  border-radius: 999px;
}

/* Main content area */
.hp-mock-main {
  flex: 1;
  padding: 14px 16px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hp-mock-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hp-mock-main-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.hp-mock-add-btn {
  font-size: 0.66rem;
  color: #1e5c97;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  padding: 2px 8px;
  cursor: default;
}

/* Image grid */
.hp-mock-img-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.hp-mock-img-card {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #f8fafc;
}

.hp-mock-img-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.hp-mock-img-ph {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-mock-img-tag {
  font-size: 0.58rem;
  font-weight: 500;
  padding: 3px 6px;
  border-top: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Prediction panel */
.hp-mock-predict-panel {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.hp-mock-predict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.hp-mock-predict-title {
  font-size: 0.66rem;
  font-weight: 600;
  color: #374151;
}

.hp-mock-predict-badge {
  font-size: 0.6rem;
  color: #16a34a;
  font-weight: 500;
}

.hp-mock-predict-result {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hp-mock-pr-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  color: #6b7280;
}

.hp-mock-pr-top {
  color: #111827;
}

.hp-mock-pr-label {
  width: 90px;
  flex-shrink: 0;
  white-space: nowrap;
}

.hp-mock-pr-bar-wrap {
  flex: 1;
  height: 6px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.hp-mock-pr-bar {
  height: 100%;
  border-radius: 999px;
  animation: hp-bar-grow 1.2s cubic-bezier(0.34, 1.12, 0.64, 1) both;
  transform-origin: left center;
}

@keyframes hp-bar-grow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

.hp-mock-pr-row:nth-child(1) .hp-mock-pr-bar { animation-delay: 0.2s; }
.hp-mock-pr-row:nth-child(2) .hp-mock-pr-bar { animation-delay: 0.5s; }
.hp-mock-pr-row:nth-child(3) .hp-mock-pr-bar { animation-delay: 0.8s; }

.hp-mock-pr-pct {
  width: 32px;
  text-align: right;
  flex-shrink: 0;
  font-size: 0.66rem;
  font-weight: 500;
}

/* Live badge pulse */
.hp-mock-predict-badge {
  font-size: 0.6rem;
  color: #16a34a;
  font-weight: 500;
  animation: hp-pulse-dot 2s ease-in-out infinite;
}

@keyframes hp-pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Responsive: hide sidebar on small screens */
@media (max-width: 640px) {
  .hp-mock-sidebar { display: none; }
  .hp-mock-img-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-mock-url { display: none; }
}

/* ── Mobile hero offset for fixed navbar ────────────────── */
@media (max-width: 991px) {
  .hp-hero-section {
    padding-top: 96px !important;
  }
}
/* ── End Mobile hero offset ──────────────────────────────── */
