/* =========================================
   components.css — PrecisePicks
   Buttons, cards, hero, pricing, screenshots, forms
   ========================================= */

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn:focus-visible {
  outline: 3px solid var(--color-brand-light);
  outline-offset: 2px;
}

/* Primary */
.btn-primary {
  background-color: var(--color-brand);
  color: var(--color-text-inverse);
  border-color: var(--color-brand);
}
.btn-primary:hover {
  background-color: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-md);
}

/* Outline */
.btn-outline {
  background-color: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn-outline:hover {
  background-color: var(--color-brand);
  color: var(--color-text-inverse);
}

/* Large */
.btn-lg {
  padding: 0.875rem 2rem;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  padding-block: var(--space-4xl);
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: block;
}

.hero-video-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.hero-video-trigger .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-full);
  background: rgb(0 31 89 / 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.hero-video-trigger:hover .play-button {
  background: var(--color-brand);
  transform: translate(-50%, -50%) scale(1.08);
}

.hero-video-trigger:focus-visible .play-button {
  outline: 3px solid var(--color-brand-light);
  outline-offset: 3px;
}

.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--color-brand);
  border: 2px dashed var(--color-brand-light);
}

/* =========================================
   CARD GRID
   ========================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.card-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* =========================================
   CARD
   ========================================= */
.card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.card-body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.65;
}

/* Feature card variant */
.feature-card {
  border-top: 3px solid var(--color-brand);
}

/* =========================================
   CTA STRIP
   ========================================= */
.cta-strip {
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
  padding-block: var(--space-3xl);
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.cta-strip h2 {
  color: var(--color-text-inverse);
  margin-bottom: 0;
}

.cta-strip .btn-primary {
  background-color: var(--color-text-inverse);
  color: var(--color-brand);
  border-color: var(--color-text-inverse);
}

.cta-strip .btn-primary:hover {
  background-color: var(--color-bg-alt);
  border-color: var(--color-bg-alt);
  color: var(--color-brand-dark);
}

/* =========================================
   FEATURE LIST (used in product-overview)
   ========================================= */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.feature-list li::before {
  content: '✓';
  color: var(--color-brand);
  font-weight: 700;
  flex-shrink: 0;
}

/* =========================================
   SCREENSHOT GALLERY
   ========================================= */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.screenshot-item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.screenshot-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.screenshot-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  color: var(--color-text-muted);
}

.screenshot-caption {
  padding: var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  background-color: var(--color-bg);
}

/* =========================================
   PRICING CARDS
   ========================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  align-items: start;
}

.pricing-card {
  position: relative;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.pricing-card--featured {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 2px var(--color-brand);
  transform: scale(1.02);
}

.plan-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-brand);
  color: var(--color-text-inverse);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-header { flex: none; }

.plan-name {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.plan-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}

.price-amount {
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--color-brand);
  line-height: 1;
}

.price-period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
}

.plan-features li::before {
  content: '✓';
  color: var(--color-brand);
  font-weight: 700;
  flex-shrink: 0;
}

.plan-btn {
  width: 100%;
  justify-content: center;
}

.pricing-note {
  text-align: center;
  margin-top: var(--space-3xl);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.price-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: calc(-1 * var(--space-md));
  margin-bottom: 0;
}

.pricing-pitch {
  max-width: 720px;
  margin: var(--space-3xl) auto 0;
  text-align: center;
}

.pricing-pitch-list {
  text-align: left;
  margin-top: var(--space-xl);
}

.pricing-pitch-list li {
  align-items: flex-start;
}

.pricing-pitch-close {
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-xl);
}

/* =========================================
   CONTACT FORM
   ========================================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-group label span {
  color: var(--color-error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgb(40 126 252 / 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  align-self: flex-start;
}

.form-status {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  display: none;
}

.form-status.is-success {
  display: block;
  color: var(--color-success);
}

.form-status.is-error {
  display: block;
  color: var(--color-error);
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .hero-image-wrap {
    order: -1;
  }

  .cta-strip-inner {
    flex-direction: column;
    text-align: center;
  }

  .pricing-card--featured {
    transform: none;
  }
}

/* =========================================
   FAQ / HELP ACCORDION
   ========================================= */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  background-color: var(--color-bg);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: var(--text-lg);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-brand);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-top: var(--space-md);
  margin-bottom: 0;
}

/* =========================================
   IMAGE LIGHTBOX
   ========================================= */
img.zoomable {
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgb(15 23 42 / 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base);
}

.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  cursor: default;
}

.lightbox-video {
  max-width: 90vw;
  max-height: 85vh;
  width: 100%;
  aspect-ratio: 1280 / 800;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  border: none;
  background: rgb(255 255 255 / 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.lightbox-close:hover {
  background: rgb(255 255 255 / 0.3);
}

.lightbox-close:focus-visible {
  outline: 3px solid var(--color-brand-light);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

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

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