/* === Screenshot Frame === */
.screenshot-frame {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

.screenshot-frame:hover {
  transform: rotate(0deg);
}

.screenshot-chrome {
  background: var(--color-bg-surface-2);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.screenshot-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.screenshot-dot--red {
  background: #ef4444;
}

.screenshot-dot--yellow {
  background: #eab308;
}

.screenshot-dot--green {
  background: #22c55e;
}

.screenshot-placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-surface);
}

.screenshot-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-bg-surface-2) 50%,
    transparent 100%
  );
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* === Card === */
.card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

/* === Badge === */
.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-feature {
  background: #dcfce7;
  color: #166534;
}

.badge-improvement {
  background: #dbeafe;
  color: #1e40af;
}

.badge-fix {
  background: #fef3c7;
  color: #92400e;
}

@media (prefers-color-scheme: dark) {
  .badge-feature {
    background: #14532d;
    color: #86efac;
  }

  .badge-improvement {
    background: #1e3a5f;
    color: #93c5fd;
  }

  .badge-fix {
    background: #451a03;
    color: #fcd34d;
  }
}

/* === FAQ Item === */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.faq-item summary {
  padding: var(--space-6);
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  transition: background 0.15s ease;
}

.faq-item summary:hover {
  background: var(--color-bg-surface);
}

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

.faq-item summary::after {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}

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

.faq-answer {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* === Plan Card === */
.plan-card {
  background: var(--color-bg-surface);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.plan-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.plan-card-price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}

.plan-card-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.plan-card-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-8);
}

.plan-features li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9375rem;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.founding-note {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-6);
  background: var(--color-accent-subtle);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* === Pain Card === */
.pain-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}

.pain-card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.pain-card h3 {
  margin-bottom: var(--space-3);
}

/* === Step === */
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.step h3 {
  margin-bottom: var(--space-3);
}

/* === Feature Bullet === */
.feature-bullet {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.feature-bullet-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}

.feature-bullet h4 {
  margin-bottom: var(--space-1);
}

.feature-bullet p {
  font-size: 0.9375rem;
}

/* === Waitlist Form === */
.waitlist-form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
}

.waitlist-form .input {
  flex: 1;
}

.waitlist-form-centered {
  margin: 0 auto;
}

.waitlist-message {
  margin-top: var(--space-3);
  font-size: 0.875rem;
  font-weight: 500;
}

.waitlist-message--success {
  color: var(--color-success);
}

.waitlist-message--error {
  color: var(--color-error);
}

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

/* === Honeypot === */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* === Hero === */
.hero {
  padding-top: calc(var(--space-24) + 80px);
  padding-bottom: var(--space-24);
  text-align: center;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto var(--space-6);
}

.hero-sub {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.hero-screenshot {
  max-width: 900px;
  margin: var(--space-16) auto 0;
}

/* === CTA Section === */
.cta-section {
  text-align: center;
  padding: var(--space-24) 0;
}

.cta-section h2 {
  margin-bottom: var(--space-4);
}

.cta-section p {
  margin-bottom: var(--space-8);
  font-size: 1.125rem;
}

/* === Security Grid === */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.security-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.security-item h4 {
  margin-bottom: var(--space-1);
}

.security-item p {
  font-size: 0.9375rem;
}

@media (max-width: 640px) {
  .security-grid {
    grid-template-columns: 1fr;
  }
}

/* === Feature Page Block === */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.feature-block:nth-child(even) {
  direction: rtl;
}

.feature-block:nth-child(even) > * {
  direction: ltr;
}

.feature-block-content h3 {
  margin-bottom: var(--space-4);
}

.feature-block-content p {
  margin-bottom: var(--space-6);
  font-size: 1.0625rem;
}

.feature-block-bullets {
  list-style: none;
}

.feature-block-bullets li {
  padding: var(--space-2) 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9375rem;
}

.feature-block-bullets li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

@media (max-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr;
  }

  .feature-block:nth-child(even) {
    direction: ltr;
  }
}

/* === Changelog === */
.changelog-entry {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-8);
  margin-bottom: var(--space-12);
}

.changelog-date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.changelog-entry h3 {
  margin-bottom: var(--space-4);
}

.changelog-items {
  list-style: none;
}

.changelog-items li {
  padding: var(--space-2) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: var(--space-24) var(--space-8);
  color: var(--color-text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

/* === Page Header === */
.page-header {
  padding-top: calc(var(--space-16) + 80px);
  padding-bottom: var(--space-12);
  text-align: center;
}

.page-header p {
  margin-top: var(--space-4);
  font-size: 1.125rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-header-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
