/* ==========================================================================
   HeartFold Product LP Stylesheet (Features, Manual, Specs, FAQ & Sticky Bar)
   ========================================================================== */

/* ==========================================================================
   Sticky Top Purchase Bar (Appears under Header)
   ========================================================================== */
.hf-sticky-bar {
  position: fixed;
  top: var(--hf-header-height, 70px);
  left: 0;
  width: 100%;
  z-index: 990;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hf-border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  padding: 8px 0;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hf-sticky-bar.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.hf-sticky-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hf-sticky-bar__title {
  font-family: var(--hf-font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--hf-text-main);
  margin-right: 8px;
}

.hf-sticky-bar__os {
  font-size: 12px;
  color: var(--hf-text-muted);
}

.hf-sticky-bar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hf-store-buttons--compact .hf-btn-store {
  padding: 5px 12px;
  border-radius: var(--hf-radius-full);
}

.hf-store-buttons--compact .hf-btn-store__badge {
  display: none;
}

.hf-store-buttons--compact .hf-btn-store__name {
  font-size: 12.5px;
}

@media (max-width: 768px) {
  .hf-sticky-bar {
    top: auto;
    bottom: 0;
    border-top: 1px solid var(--hf-border);
    border-bottom: none;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(100%);
    padding: 10px 0;
  }

  .hf-sticky-bar.visible {
    transform: translateY(0);
  }

  .hf-sticky-bar__info {
    display: none;
  }

  .hf-sticky-bar__actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Product Hero Section
   ========================================================================== */
.hf-product-hero {
  padding: 60px 0 50px;
  background: linear-gradient(180deg, #ffffff 0%, var(--hf-bg-body) 100%);
  border-bottom: 1px solid var(--hf-border);
}

.hf-product-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hf-product-hero__meta {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.hf-product-hero__title {
  font-size: clamp(32px, 4.5vw, 48px);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hf-product-hero__tagline {
  font-size: 18px;
  color: var(--hf-text-muted);
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.5;
}

.hf-product-hero__price {
  margin-bottom: 24px;
}

.hf-product-hero__desc {
  font-size: 15px;
  color: #334155;
  margin-bottom: 30px;
  line-height: 1.8;
}

.hf-pr-points {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--hf-radius-md);
  padding: 20px 24px;
  margin: 20px 0;
}

.hf-pr-points h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--hf-text-main);
  margin-bottom: 12px;
}

.hf-pr-points ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hf-pr-points li {
  font-size: 14px;
  color: #334155;
  margin-bottom: 10px;
  line-height: 1.6;
  position: relative;
  padding-left: 22px;
}

.hf-pr-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--hf-primary);
  font-weight: 800;
}

.hf-pr-points li:last-child {
  margin-bottom: 0;
}

.hf-hero-media-wrap img {
  max-height: 480px;
  width: 100%;
  object-fit: contain;
  border-radius: var(--hf-radius-lg);
  box-shadow: var(--hf-shadow-lg);
  cursor: zoom-in;
  transition: transform 0.3s ease;
  background: #ffffff;
  display: block;
}

.hf-hero-media-wrap img:hover {
  transform: scale(1.01);
}

@media (max-width: 900px) {
  .hf-product-hero__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Page Nav Tabs (In-Page Jump Links)
   ========================================================================== */
.hf-page-nav {
  position: sticky;
  top: var(--hf-header-height);
  z-index: 900;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hf-border);
  padding: 10px 0;
}

.hf-page-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 4px 0;
}

.hf-page-nav__list li a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--hf-radius-full);
  font-size: 14px;
  font-weight: 700;
  color: var(--hf-text-muted);
  background: var(--hf-bg-subtle);
  border: 1px solid transparent;
  transition: var(--hf-transition);
}

.hf-page-nav__list li a:hover,
.hf-page-nav__list li a.active {
  background: var(--hf-primary-light);
  color: var(--hf-primary);
  border-color: rgba(255, 71, 102, 0.3);
}

/* ==========================================================================
   1. Features Grid (Dual-Media: Static Image + Hover GIF Preview)
   ========================================================================== */
.hf-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.hf-feature-card {
  background: #ffffff;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--hf-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.hf-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hf-shadow-md);
  border-color: #cbd5e1;
}

.hf-feature-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
  border-bottom: 1px solid var(--hf-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hf-feature-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hf-feature-img--static {
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.hf-feature-img--gif {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* On hover, reveal GIF */
.hf-feature-card:hover .hf-feature-img--static {
  opacity: 0;
}

.hf-feature-card:hover .hf-feature-img--gif {
  opacity: 1;
}

.hf-gif-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #38bdf8;
  font-family: var(--hf-font-display);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  transition: opacity 0.2s ease;
}

.hf-feature-card:hover .hf-gif-badge {
  opacity: 0;
}

/* Elegant Placeholder Artwork when no image uploaded */
.hf-feature-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
}

.hf-placeholder-graphic {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hf-placeholder-graphic::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 71, 102, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hf-graphic-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.hf-graphic-num {
  display: inline-block;
  font-family: var(--hf-font-display);
  font-size: 28px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 4px;
}

.hf-graphic-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.2px;
}

.hf-feature-card__content {
  padding: 24px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hf-feature-card__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--hf-text-main);
  margin-bottom: 10px;
  line-height: 1.4;
}

.hf-feature-card__desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   2. Controls & Shortcuts Deck (Pro Graphical 3-Column UI)
   ========================================================================== */
.hf-shortcuts-deck {
  max-width: 1080px;
  margin: 0 auto;
}

.hf-shortcuts-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 960px) {
  .hf-shortcuts-grid-3col {
    grid-template-columns: 1fr;
  }
}

.hf-shortcut-box {
  background: #ffffff;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-lg);
  overflow: hidden;
  box-shadow: var(--hf-shadow-sm);
  display: flex;
  flex-direction: column;
}

.hf-shortcut-box__header {
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--hf-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hf-shortcut-box__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hf-primary);
}

.hf-shortcut-box__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--hf-text-main);
  margin: 0;
  letter-spacing: -0.2px;
}

.hf-shortcut-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.hf-shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.hf-shortcut-item:last-child {
  border-bottom: none;
}

.hf-shortcut-item:hover {
  background: #f8fafc;
}

.hf-shortcut-item__action {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  flex: 1;
}

.hf-shortcut-item__keys {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hf-key-cap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 2px 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-bottom: 2.5px solid #94a3b8;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.hf-mouse-cap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  white-space: nowrap;
}

.hf-shortcuts-custom-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--hf-radius-md);
  padding: 16px 20px;
  box-shadow: var(--hf-shadow-sm);
}

.hf-custom-banner-badge {
  font-family: var(--hf-font-display);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
}

.hf-custom-banner-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
}

.hf-custom-banner-desc strong {
  color: var(--hf-text-main);
}

/* ==========================================================================
   4. Specifications & Supported Formats
   ========================================================================== */
.hf-specs-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.hf-formats-box {
  background: #ffffff;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-lg);
  padding: 28px;
  margin-bottom: 30px;
  box-shadow: var(--hf-shadow-sm);
}

.hf-specs-subheading {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--hf-text-main);
}

.hf-formats-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hf-format-tag {
  background: var(--hf-bg-subtle);
  border: 1px solid var(--hf-border);
  padding: 6px 14px;
  border-radius: var(--hf-radius-sm);
  font-family: var(--hf-font-display);
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.hf-specs-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-lg);
  overflow: hidden;
  box-shadow: var(--hf-shadow-sm);
  margin-bottom: 30px;
}

.hf-specs-table th,
.hf-specs-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--hf-border);
  font-size: 14.5px;
  text-align: left;
}

.hf-specs-table th {
  width: 35%;
  background: var(--hf-bg-subtle);
  font-weight: 700;
  color: var(--hf-text-main);
}

.hf-specs-table tr:last-child th,
.hf-specs-table tr:last-child td {
  border-bottom: none;
}

.hf-changelog-box {
  background: #ffffff;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-lg);
  padding: 28px;
  box-shadow: var(--hf-shadow-sm);
}

.hf-changelog-content pre {
  background: #f8fafc;
  padding: 20px 24px;
  border-radius: var(--hf-radius-md);
  border: 1px solid var(--hf-border);
  font-family: Consolas, 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.9;
  white-space: pre-wrap;
  color: #1e293b;
}

.hf-changelog-content code {
  font-family: inherit;
}

/* ==========================================================================
   4. FAQ Accordion
   ========================================================================== */
.hf-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hf-faq-item {
  background: #ffffff;
  border: 1px solid var(--hf-border);
  border-radius: var(--hf-radius-md);
  overflow: hidden;
  box-shadow: var(--hf-shadow-sm);
  transition: var(--hf-transition);
}

.hf-faq-item:hover {
  border-color: #cbd5e1;
}

.hf-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--hf-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--hf-text-main);
}

.hf-faq-q-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--hf-primary-light);
  color: var(--hf-primary);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.hf-faq-question {
  flex: 1;
}

.hf-faq-icon {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hf-faq-icon::before,
.hf-faq-icon::after {
  content: '';
  position: absolute;
  background: var(--hf-text-muted);
  border-radius: 2px;
}

.hf-faq-icon::before {
  top: 8px;
  left: 0;
  width: 100%;
  height: 2px;
}

.hf-faq-icon::after {
  top: 0;
  left: 8px;
  width: 2px;
  height: 100%;
  transition: transform 0.3s ease;
}

.hf-faq-item.active .hf-faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.hf-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 24px;
}

.hf-faq-item.active .hf-faq-answer {
  padding: 0 24px 24px 24px;
}

.hf-faq-answer__inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-top: 14px;
  border-top: 1px dashed var(--hf-border);
}

.hf-faq-a-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #ecfdf5;
  color: var(--hf-success);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.hf-faq-answer__text {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.7;
}

/* ==========================================================================
   Bottom CTA Banner
   ========================================================================== */
.hf-bottom-cta {
  padding: 90px 0;
  background: linear-gradient(135deg, #fff5f7 0%, #f0f9ff 100%);
  border-top: 1px solid var(--hf-border);
  text-align: center;
}

.hf-bottom-cta__inner {
  max-width: 680px;
  margin: 0 auto;
}

.hf-bottom-cta__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--hf-primary);
  margin-bottom: 12px;
}

.hf-bottom-cta__title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 10px;
}

.hf-bottom-cta__sub {
  font-size: 16px;
  color: var(--hf-text-muted);
  margin-bottom: 24px;
}

.hf-bottom-cta__pricing {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.hf-bottom-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
