/* ===========================================================
   SpecZap AI — Landing Page Styles
   landing.css
   =========================================================== */

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Diagonal red accent shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 130%;
  background: linear-gradient(135deg, rgba(230,57,70,0.07) 0%, transparent 60%);
  transform: skewX(-12deg);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, var(--p-black), transparent);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
  padding: var(--sp-2xl) 0;
}

/* ── Hero Left: Brand + CTA ── */
.hero-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.hero-eyebrow-line {
  width: 40px;
  height: 2px;
  background: var(--p-red);
}

.hero-super {
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--p-red);
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--p-white);
}

.hero-title .highlight {
  color: var(--p-red);
  display: block;
  -webkit-text-stroke: 1px var(--p-red);
}

.hero-kana {
  font-size: 0.8rem;
  letter-spacing: 8px;
  color: var(--p-gray);
  font-weight: 300;
  margin-top: -8px;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--p-gray-light);
  font-weight: 300;
  line-height: 1.7;
  max-width: 420px;
}

.hero-tagline strong {
  color: var(--p-white);
  font-weight: 600;
}

.hero-stats {
  display: flex;
  gap: var(--sp-xl);
  margin-top: var(--sp-sm);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--p-white);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--p-gray);
}

/* ── Hero Right: Compare Widget Preview / Decorative ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-vs-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(230,57,70,0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-ring 3s infinite;
  z-index: 0;
}

.hero-card-float {
  width: 100%;
  max-width: 480px;
  background: var(--p-card);
  border: 1px solid var(--p-border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl) var(--sp-lg);
  position: relative;
  z-index: 1;
  animation: float 4s ease-in-out infinite;
  box-shadow: var(--shadow-red);
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Clickable variant — hover glow + cursor */
.hero-card-clickable {
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.hero-card-clickable:hover {
  border-color: var(--p-red);
  box-shadow: 0 0 40px rgba(230, 57, 70, 0.35), var(--shadow-red);
  transform: translateY(-4px) scale(1.015);
  animation-play-state: paused; /* pause float on hover */
}

.hero-card-clickable:hover .hcf-btn {
  background: linear-gradient(90deg, #ff4757, #e63946);
  transform: scaleX(1.02);
}

.hero-card-clickable:hover .hcf-try-label {
  opacity: 1;
  transform: translateY(0);
}

/* "Try it now →" label — hidden by default, shows on hover */
.hcf-try-label {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--p-red);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.hero-card-float::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--p-gradient-red);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  transition: background 0.25s ease;
}

.hero-card-clickable:hover::before {
  background: linear-gradient(90deg, #ff4757, var(--p-gold));
}

.hcf-vs-row {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.hcf-input-preview {
  flex: 1;
  padding: 10px 14px;
  background: var(--p-black-2);
  border: 1px solid var(--p-border);
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  color: var(--p-gray);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s ease;
}

.hero-card-clickable:hover .hcf-input-preview {
  border-color: rgba(230, 57, 70, 0.3);
  color: var(--p-gray-light);
}

.hcf-vs-badge {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--p-red);
  letter-spacing: 2px;
  flex-shrink: 0;
}

.hcf-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sp-md);
}

.hcf-btn {
  margin-top: var(--sp-lg);
  width: 100%;
  text-align: center;
  background: var(--p-gradient-red);
  color: white;
  padding: 12px;
  font-family: var(--font-display);
  letter-spacing: 2px;
  font-size: 1rem;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  display: block;
  transition: background 0.2s ease;
}


/* ── Section: Compare Arena ── */
.compare-section {
  padding: var(--sp-2xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--p-red);
  font-weight: 600;
  margin-bottom: var(--sp-sm);
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--p-white);
  line-height: 1;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--p-gray);
  margin-top: var(--sp-md);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Compare Arena Main ── */
.arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-xl);
  align-items: start;
}

/* Product Input Panel */
.product-panel {
  background: var(--p-card);
  border: 1.5px solid var(--p-border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.product-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--p-border);
  transition: background var(--t-base);
}

.product-panel.side-left::before  { background: linear-gradient(90deg, var(--p-red-dark), var(--p-red)); }
.product-panel.side-right::before { background: linear-gradient(90deg, var(--p-gold), #f5a742); }

.product-panel.side-left  { border-top-color: var(--p-red-dark); }
.product-panel.side-right { border-top-color: var(--p-gold); }

.product-panel:focus-within {
  box-shadow: var(--shadow-red);
}

.panel-label {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--sp-md);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.side-left .panel-label  { color: var(--p-red); }
.side-right .panel-label { color: var(--p-gold); }

.panel-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.side-left .panel-label-dot  { background: var(--p-red); }
.side-right .panel-label-dot { background: var(--p-gold); }

.url-input-wrapper {
  position: relative;
}

.url-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--p-gray);
  font-size: 0.9rem;
  pointer-events: none;
  transition: color var(--t-fast);
}

.url-input-wrapper .p-input {
  padding-left: 40px;
  padding-right: 44px;
}

.url-validation-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.url-validation-icon.show { opacity: 1; }

.url-hint {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--p-gray);
  display: flex;
  align-items: center;
  gap: 6px;
}
.url-hint.valid   { color: var(--p-green); }
.url-hint.invalid { color: #f87171; }
.url-hint.loading { color: var(--p-gold); }

/* Multi-product add */
.panel-products-list {
  margin-top: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.panel-product-row {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 10px 14px;
  background: var(--p-black-2);
  border: 1px solid var(--p-border);
  border-radius: var(--r-sm);
  font-size: 0.85rem;
}

.panel-product-row .product-index {
  font-family: var(--font-mono);
  color: var(--p-gray);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.panel-product-row .product-url-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--p-gray-light);
}

.panel-product-row .product-remove {
  background: none;
  border: none;
  color: var(--p-gray);
  font-size: 0.9rem;
  padding: 2px 4px;
  flex-shrink: 0;
  transition: color var(--t-fast);
}
.panel-product-row .product-remove:hover { color: var(--p-red); }

/* ── VS Badge (center) ── */
.vs-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  padding-top: 60px;
  min-width: 80px;
}

.vs-badge {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--p-gradient-red);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: white;
  animation: pulse-ring 2.5s infinite;
}

.vs-or-text {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--p-gray);
  text-transform: uppercase;
}

/* ── Focus Chips Section ── */
.focus-section {
  margin-top: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.focus-label {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--p-gray);
  font-weight: 600;
}

.focus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

/* ── CTA Section ── */
.cta-section {
  margin-top: var(--sp-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}

.cta-error-msg {
  font-size: 0.82rem;
  color: #f87171;
  display: none;
}
.cta-error-msg.show { display: block; }

.cta-note {
  font-size: 0.75rem;
  color: var(--p-gray);
}

/* ── How It Works ── */
.how-section {
  padding: var(--sp-2xl) 0;
  position: relative;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
  position: relative;
}

/* Connecting line */
.how-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--p-border), var(--p-border), transparent);
  z-index: 0;
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-md);
  position: relative;
  z-index: 1;
}

.how-step-icon-wrap {
  position: relative;
  width: 64px;
  margin: 0 auto;
}

.how-step-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--p-card);
  border: 1.5px solid var(--p-border);
  border-radius: var(--r-md);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all var(--t-base);
}

.how-step:hover .how-step-icon {
  background: var(--p-red-subtle);
  border-color: var(--p-red);
}

.how-step-num {
  position: absolute;
  top: -10px;
  right: -10px;
  min-width: 24px;
  height: 24px;
  background: var(--p-red);
  border: 2px solid var(--p-black);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 0 4px;
  z-index: 2;
}

.how-step-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--p-white);
  text-transform: uppercase;
}

.how-step-desc {
  font-size: 0.82rem;
  color: var(--p-gray);
  line-height: 1.6;
}

/* ── Supported Sites Section ── */
.supported-section {
  padding: var(--sp-xl) 0;
  border-top: 1px solid var(--p-border);
  border-bottom: 1px solid var(--p-border);
  margin: var(--sp-2xl) 0;
}

.supported-label {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--p-gray);
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.supported-sites {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-sm);
}

.site-pill {
  padding: 6px 16px;
  background: var(--p-card);
  border: 1px solid var(--p-border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--p-gray-light);
  transition: all var(--t-fast);
}

.site-pill:hover {
  border-color: var(--p-red);
  color: var(--p-white);
}

/* ── Footer Premium ── */
.site-footer {
  position: relative;
  background: var(--p-black-2);
  margin-top: 0;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 40px,
    rgba(230, 57, 70, 0.015) 40px,
    rgba(230, 57, 70, 0.015) 80px
  );
  pointer-events: none;
}

.footer-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--p-red-dark), var(--p-red), var(--p-gold), transparent);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--sp-2xl);
  padding: var(--sp-2xl) 0 var(--sp-xl);
  position: relative;
  z-index: 1;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 4px;
  color: var(--p-white);
  line-height: 1;
}
.footer-logo span { color: var(--p-red); }

.footer-tagline {
  font-size: 0.85rem;
  color: var(--p-gray-light);
  font-weight: 500;
}

.footer-kana {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--p-gray);
  font-weight: 300;
  margin-top: 2px;
}

.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: var(--sp-md);
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  background: var(--p-card);
  border: 1px solid var(--p-border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p-gray);
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  transition: all var(--t-fast);
}
.footer-social-btn:hover {
  background: var(--p-red-subtle);
  border-color: var(--p-red);
  color: var(--p-red);
}

.footer-nav-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.footer-nav-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--p-red);
  border-left: 2px solid var(--p-red);
  padding-left: 10px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list li a {
  font-size: 0.85rem;
  color: var(--p-gray);
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-nav-list li a::before {
  content: '◆';
  font-size: 0.4rem;
  color: var(--p-border);
  transition: color var(--t-fast);
}
.footer-nav-list li a:hover {
  color: var(--p-white);
}
.footer-nav-list li a:hover::before {
  color: var(--p-red);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--p-red-dark), var(--p-border), transparent);
  position: relative;
  z-index: 1;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-lg) 0;
  position: relative;
  z-index: 1;
  gap: var(--sp-md);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--p-gray);
  font-family: var(--font-mono);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.footer-powered {
  font-size: 0.72rem;
  color: var(--p-gray);
  letter-spacing: 1px;
}

.footer-powered-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border: 1px solid var(--p-red);
  color: var(--p-red);
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .footer-main { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .footer-nav-cols { grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Ad Slots ── */
.ad-slot {
  background: var(--p-card-2);
  border: 1px dashed var(--p-border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p-gray);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: var(--sp-md);
  min-height: 90px;
  margin: var(--sp-xl) 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .hero-visual { display: none; }
  .arena { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .vs-center { flex-direction: row; padding-top: 0; justify-content: center; }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .how-steps::before { display: none; }
}

@media (max-width: 768px) {
  .hero { padding-top: 70px; }
  .hero-title { font-size: 3.5rem; }
  .hero-stats { gap: var(--sp-lg); }
  .how-steps { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
}

/* ══ Quick Presets ════════════════════════════════════════════════ */
.presets-section {
  margin-bottom: var(--sp-xl);
}

.presets-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--p-gray);
  margin-bottom: var(--sp-sm);
  font-family: var(--font-display);
}

.presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-btn {
  background: var(--p-card);
  border: 1px solid var(--p-border);
  color: var(--p-gray-light);
  font-size: 0.78rem;
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.preset-btn span {
  color: var(--p-red);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 1px;
}

.preset-btn:hover {
  background: var(--p-red-subtle);
  border-color: var(--p-red);
  color: var(--p-white);
  transform: translateY(-1px);
}

@keyframes pulse-once {
  0%   { box-shadow: 0 0 0 0 rgba(230,57,70,0.6); }
  50%  { box-shadow: 0 0 0 12px rgba(230,57,70,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,57,70,0); }
}
.pulse-once { animation: pulse-once 0.6s ease; }

/* ══ Use Case Chips ════════════════════════════════════════════════ */
.usecase-section {
  margin-bottom: var(--sp-lg);
}

.usecase-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--sp-sm);
}

.usecase-chip {
  background: transparent;
  border: 1px solid var(--p-border);
  color: var(--p-gray);
  font-size: 0.78rem;
  padding: 6px 16px;
  cursor: pointer;
  font-family: var(--font-sans);
  border-radius: 2px;
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  transition: all var(--t-fast);
}

.usecase-chip.active {
  background: rgba(230, 57, 70, 0.12);
  border-color: var(--p-red);
  color: var(--p-white);
  font-weight: 600;
}

.usecase-chip:hover:not(.active) {
  border-color: var(--p-gray);
  color: var(--p-gray-light);
}

/* ══ Comparison History ════════════════════════════════════════════ */
.history-panel {
  display: none;
  background: var(--p-card);
  border: 1px solid var(--p-border);
  border-left: 3px solid var(--p-gold);
  padding: var(--sp-md) var(--sp-lg);
  margin-bottom: var(--sp-xl);
  position: relative;
}

.history-panel-title {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--p-gold);
  font-family: var(--font-display);
  margin-bottom: var(--sp-sm);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  text-align: left;
  color: var(--p-gray-light);
  font-size: 0.82rem;
  font-family: var(--font-sans);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color var(--t-fast);
  width: 100%;
  gap: 12px;
}

.history-item:hover { color: var(--p-white); }
.history-vs { color: var(--p-red); font-size: 0.7rem; margin: 0 6px; }
.history-time { font-size: 0.7rem; color: var(--p-gray); flex-shrink: 0; }

/* ══ Input placeholder hint for smart mode ══════════════════════════ */
.p-input.valid  { border-color: var(--p-green) !important; }
.p-input.invalid { border-color: #f87171 !important; }
.url-hint.ai-mode { color: var(--p-gold); }

/* ══ Multi-Product Arena ═══════════════════════════════════════════ */
.multi-arena-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
  margin-bottom: var(--sp-lg);
  transition: grid-template-columns 0.3s ease;
}

/* Individual product slot */
.product-slot {
  background: var(--p-card);
  border: 1.5px solid var(--p-border);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-slot::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--slot-color, var(--p-red));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.product-slot:focus-within {
  border-color: var(--slot-color, var(--p-red));
  box-shadow: 0 0 20px rgba(from var(--slot-color, var(--p-red)) r g b / 0.15);
}

/* Slot Header */
.slot-header {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.slot-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--slot-color, var(--p-red));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.slot-label-text {
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--slot-color, var(--p-red));
  font-weight: 600;
  flex: 1;
}

.slot-remove-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  color: #f87171;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.slot-remove-btn:hover {
  background: rgba(248,113,113,0.25);
  border-color: #f87171;
  transform: scale(1.1);
}

/* Add Product Button row */
.add-product-row {
  margin-bottom: var(--sp-xl);
  display: flex;
  justify-content: center;
}

.add-product-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 10px 28px;
  background: var(--p-card);
  border: 1.5px dashed var(--p-border);
  border-radius: 100px;
  color: var(--p-gray);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--t-fast);
}

.add-product-btn:hover:not(:disabled) {
  border-color: var(--p-red);
  color: var(--p-white);
  background: var(--p-red-subtle);
}

.add-product-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.add-product-plus {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--p-red);
  line-height: 1;
}

.add-product-limit {
  font-size: 0.72rem;
  color: var(--p-gray);
}

/* Responsive: stack to 1 col on mobile */
@media (max-width: 768px) {
  .multi-arena-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ══ HOW IT WORKS — fix grid layout ════════════════════════════════════ */
.how-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: var(--sp-xl) !important;
  margin-top: var(--sp-2xl);
}

@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 560px) {
  .how-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ══ Fix empty gap below CTA section ══════════════════════════════════ */
.cta-section {
  padding-bottom: var(--sp-2xl) !important;
  margin-bottom: 0 !important;
}

.compare-section .container {
  padding-bottom: var(--sp-2xl);
}

/* ══ Sticky nav glow on scroll ════════════════════════════════════════ */
.p-nav.scrolled {
  background: rgba(10,10,10,0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(230,57,70,0.3) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5) !important;
}

/* ══ Mobile chips — horizontal scroll ═════════════════════════════════ */
@media (max-width: 768px) {
  .focus-chips,
  .usecase-chips {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 8px !important;
    gap: 8px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }
  .focus-chips::-webkit-scrollbar,
  .usecase-chips::-webkit-scrollbar {
    display: none;
  }
  .p-chip,
  .usecase-chip {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
}

/* ══ Slot input focus glow ════════════════════════════════════════════ */
.product-slot:focus-within {
  border-color: var(--slot-color, var(--p-red)) !important;
  box-shadow:
    0 0 0 1px var(--slot-color, var(--p-red)),
    0 0 24px color-mix(in srgb, var(--slot-color, var(--p-red)) 30%, transparent) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ══ ANALYZE button pulse animation ══════════════════════════════════ */
@keyframes btn-pulse {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(230,57,70,0.6); }
  50%  { transform: scale(1.03); box-shadow: 0 0 0 12px rgba(230,57,70,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230,57,70,0); }
}

#compare-btn:not(:disabled):hover {
  animation: btn-pulse 1s ease infinite;
}

#compare-btn.pulse-once {
  animation: btn-pulse 0.6s ease forwards;
}

/* ══ Paste detection toast ════════════════════════════════════════════ */
.paste-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--p-card);
  border: 1px solid var(--p-green);
  color: var(--p-green);
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 9999;
}
.paste-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ══ How step icon — fix number badge overlap ════════════════════════ */
.how-step-icon-wrap {
  position: relative;
  margin-bottom: var(--sp-lg);
}

.how-step-icon {
  font-size: 2.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: rgba(230,57,70,0.08);
  border: 1px solid rgba(230,57,70,0.2);
  border-radius: var(--r-md);
  margin: 0 auto;
}

.how-step-num {
  position: absolute;
  top: -10px;
  right: calc(50% - 46px);
  background: var(--p-red);
  color: white;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.4;
}

/* ══ Footer ⚡ brand — show properly ═══════════════════════════════════ */
.footer-brand-icon {
  font-size: 1.5rem;
  color: var(--p-red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ══ History item hover ═══════════════════════════════════════════════ */
.history-item {
  display: flex;
  align-items: center;
  background: var(--p-card);
  border: 1px solid var(--p-border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--p-gray-light);
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  gap: 8px;
}
.history-item:hover {
  border-color: var(--p-red);
  color: var(--p-white);
  background: var(--p-red-subtle);
}


/* === Inline Progress Panel === */
.inline-progress-panel {
  margin-top: var(--sp-lg);
  background: var(--p-card);
  border: 1px solid var(--p-border);
  border-radius: var(--r-md);
  padding: var(--sp-lg) var(--sp-xl);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.3s ease forwards;
  position: relative;
  overflow: hidden;
}
.inline-progress-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--p-red), var(--p-gold));
}
.ipanel-pct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-sm);
}
.ipanel-status-text {
  font-size: 0.82rem;
  color: var(--p-gray-light);
  font-family: var(--font-mono);
}
.ipanel-pct {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--p-red);
  letter-spacing: 1px;
}
.ipanel-bar-track {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: visible;
  margin-bottom: var(--sp-md);
}
.ipanel-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--p-red-dark), var(--p-red), #ff6b6b);
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.ipanel-bar-glow {
  position: absolute;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 20px; height: 20px;
  background: radial-gradient(circle, rgba(230,57,70,0.8) 0%, transparent 70%);
  border-radius: 50%;
  transition: left 0.5s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.ipanel-steps {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.ipanel-steps::-webkit-scrollbar { display: none; }
.ipanel-step {
  font-size: 0.72rem;
  color: var(--p-gray);
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 100px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.ipanel-step.active {
  color: var(--p-red);
  background: var(--p-red-subtle);
  border: 1px solid rgba(230,57,70,0.3);
  font-weight: 600;
}
.ipanel-step.done { color: var(--p-green); opacity: 0.8; }
.ipanel-sep { color: var(--p-gray); font-size: 0.7rem; opacity: 0.4; flex-shrink: 0; }

#compare-btn.loading { opacity: 0.7; pointer-events: none; }
#compare-btn.loading::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 200%;
  animation: shimmer-btn 1.2s linear infinite;
}
@keyframes shimmer-btn {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* === Smart Confirm Overlay === */
.smart-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(12px);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg);
  animation: fadeInUp 0.3s ease forwards;
}
.smart-confirm-box {
  background: var(--p-card);
  border: 1px solid var(--p-border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  max-width: 520px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.smart-confirm-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--p-red), var(--p-gold), var(--p-red));
}
.sc-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 3px;
  color: var(--p-red);
  font-family: var(--font-display);
  margin-bottom: var(--sp-sm);
}
.sc-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: var(--sp-lg);
}
.sc-product-card {
  display: flex;
  gap: var(--sp-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--p-border);
  border-radius: var(--r-md);
  padding: var(--sp-md);
  margin-bottom: var(--sp-lg);
}
.sc-product-img { width:80px; height:80px; border-radius:var(--r-sm); background:var(--p-card-2) center/cover no-repeat; display:flex; align-items:center; justify-content:center; font-size:2rem; }
.sc-product-img:empty::after { content:"??"; }
.sc-product-info { flex:1; min-width:0; }
.sc-brand { font-size:0.72rem; color:var(--p-red); letter-spacing:2px; text-transform:uppercase; margin-bottom:4px; }
.sc-name  { font-size:1rem; font-weight:700; color:var(--p-white); margin-bottom:4px; line-height:1.3; }
.sc-price { font-size:0.85rem; color:var(--p-gold); font-weight:600; margin-bottom:8px; }
.sc-specs { display:flex; flex-direction:column; gap:2px; }
.sc-spec-item { font-size:0.75rem; color:var(--p-gray-light); }
.sc-actions { display:flex; gap:var(--sp-md); margin-bottom:var(--sp-md); }
.sc-btn-yes { flex:1; background:var(--p-gradient-red); color:white; border:none; border-radius:var(--r-sm); padding:12px 20px; font-family:var(--font-display); letter-spacing:1px; font-size:0.95rem; cursor:pointer; transition:all var(--t-base); }
.sc-btn-yes:hover { box-shadow:0 0 20px var(--p-red-glow); transform:translateY(-1px); }
.sc-btn-no { background:transparent; border:1px solid var(--p-border); color:var(--p-gray); border-radius:var(--r-sm); padding:12px 20px; font-size:0.88rem; cursor:pointer; transition:all var(--t-base); }
.sc-btn-no:hover { border-color:var(--p-red); color:var(--p-white); }
.sc-hint { font-size:0.72rem; color:var(--p-gray); text-align:center; font-style:italic; }

/* === Fallback AI note === */
.fallback-ai-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(230,57,70,0.05);
  border: 1px dashed rgba(230,57,70,0.3);
  border-radius: var(--r-sm);
  margin-top: var(--sp-sm);
  font-size: 0.8rem;
  color: var(--p-gray-light);
}
.fallback-ai-icon { font-size:1.1rem; flex-shrink:0; }
