/* Pinterest Media Downloader Super - Website Stylesheet */

:root {
  --primary: #e60023;
  --primary-hover: #b6001c;
  --dark: #111111;
  --dark-surface: #18181b;
  --gray-bg: #f7f7f8;
  --border: #e4e4e7;
  --text-muted: #71717a;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--gray-bg);
  color: var(--dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.brand-name strong {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 22px;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-item:hover {
  color: var(--dark);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: #ffffff;
  border-color: #a1a1aa;
}

.full-width {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 60px 20px 40px;
  text-align: center;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.badge-pill {
  display: inline-block;
  background: #fff0f2;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #09090b;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Downloader Form Card */
.downloader-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.downloader-form {
  display: flex;
  gap: 12px;
}

.input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: #fafafa;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 6px 12px;
  transition: border-color 0.2s, background-color 0.2s;
}

.input-wrapper:focus-within {
  border-color: var(--primary);
  background: #ffffff;
}

.link-icon {
  margin-right: 8px;
  flex-shrink: 0;
}

.pin-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: var(--dark);
}

.btn-paste {
  background: #e4e4e7;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: #3f3f46;
}

.btn-paste:hover {
  background: #d4d4d8;
}

.btn-extract {
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 0 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.btn-extract:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-extract:disabled {
  background: #a1a1aa;
  cursor: not-allowed;
  transform: none;
}

.status-box {
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.status-box.loading {
  background: #f4f4f5;
  color: #52525b;
}

.status-box.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Result Box */
.result-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 20px;
  text-align: left;
  align-items: center;
}

.result-thumb-col {
  width: 110px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #e4e4e7;
  flex-shrink: 0;
}

.result-thumb-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.result-info-col {
  flex: 1;
}

.result-video-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 6px;
}

.pin-id-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: #f4f4f5;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.quality-selector-row {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quality-selector-row label {
  font-size: 12px;
  font-weight: 700;
  color: #52525b;
}

.quality-dropdown {
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fafafa;
  outline: none;
}

.btn-download-action {
  background: var(--primary);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(230, 0, 35, 0.25);
}

/* Extension Section */
.extension-section {
  padding: 70px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px;
}

.section-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 8px 0 12px;
  color: #09090b;
}

.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.feature-card {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.feature-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff0f2;
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Install Banner */
.install-banner {
  background: #09090b;
  color: #ffffff;
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.install-info h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.install-info p {
  font-size: 13px;
  color: #a1a1aa;
}

.btn-large-download {
  background: var(--primary);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
}

.btn-large-download:hover {
  background: var(--primary-hover);
}

.steps-container {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
}

.steps-heading {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.steps-list {
  padding-left: 20px;
  font-size: 13px;
  color: #3f3f46;
  line-height: 1.8;
}

/* Pricing Section */
.pricing-section {
  padding: 70px 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(230, 0, 35, 0.1);
}

.popular-ribbon {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 9px;
  font-weight: 800;
  background: #fff0f2;
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.plan-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.plan-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.plan-features li {
  font-size: 13px;
  color: #27272a;
  padding: 8px 0;
  border-bottom: 1px solid #f4f4f5;
}

.plan-guarantee {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* FAQs Section */
.faqs-section {
  padding: 60px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.faq-question {
  font-size: 15px;
  font-weight: 700;
  color: #18181b;
  margin-bottom: 6px;
}

.faq-answer {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: #09090b;
  color: #a1a1aa;
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-disclaimer {
  font-size: 11px;
  color: #71717a;
  line-height: 1.5;
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 11px;
  color: #52525b;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hero-title { font-size: 30px; }
  .downloader-form { flex-direction: column; }
  .btn-extract { padding: 12px; }
  .result-box { flex-direction: column; align-items: flex-start; }
  .result-thumb-col { width: 100%; height: 200px; }
  .extension-grid { grid-template-columns: 1fr; }
  .install-banner { flex-direction: column; gap: 16px; text-align: center; }
  .pricing-grid { grid-template-columns: 1fr; }
}
