/* ============================================
   LastCork Landing Page Styles
   ============================================ */

/* --- Hero --- */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -30%);
  background: radial-gradient(circle, rgba(139, 0, 0, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-visual {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.hero-glass {
  width: 200px;
  height: 300px;
  background: linear-gradient(
    135deg,
    rgba(139, 0, 0, 0.15) 0%,
    rgba(201, 168, 76, 0.08) 50%,
    rgba(15, 52, 96, 0.2) 100%
  );
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 0 0 50% 50% / 0 0 60% 60%;
  position: relative;
  overflow: hidden;
}

.hero-glass::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(
    to top,
    rgba(139, 0, 0, 0.5),
    rgba(139, 0, 0, 0.15)
  );
  border-radius: 0 0 50% 50% / 0 0 60% 60%;
  animation: fillWine 3s ease-out forwards;
}

@keyframes fillWine {
  from { height: 0; }
  to { height: 55%; }
}

.hero-glass::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 8px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  transform: rotate(-15deg);
}

/* --- Section Common --- */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

/* --- How It Works --- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.how-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.how-card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(139, 0, 0, 0.15);
  border: 1px solid rgba(139, 0, 0, 0.3);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.how-card h3 {
  margin-bottom: 0.75rem;
}

.how-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .how-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* --- Sites We Monitor --- */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.site-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  position: relative;
}

.site-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  padding: 2px;
}

.site-logo-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: Georgia, serif;
  padding: 4px;
  background: none !important;
}

.site-card h4 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
}

.site-card .site-status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.site-card .badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

/* --- Why / Savings Section --- */
.savings-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--surface, #16213e);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}

.stat-card.highlight {
  background: rgba(139, 0, 0, 0.15);
  border-color: rgba(139, 0, 0, 0.4);
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: Georgia, serif;
  color: #C9A84C;
  margin-bottom: 0.25rem;
}

.stat-card.highlight .stat-value {
  color: #ff6b6b;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted, #8892b0);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.value-table-wrapper {
  background: var(--surface, #16213e);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(255,255,255,0.06);
}

.value-title {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text, #e8e8e8);
}

.value-table {
  width: 100%;
  border-collapse: collapse;
}

.value-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #8892b0);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.value-table td {
  padding: 1rem;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.value-table .positive {
  color: #4ade80;
  font-weight: 600;
}

.value-table .highlight-row {
  background: rgba(139, 0, 0, 0.1);
}

.value-table .highlight-row td {
  font-weight: 600;
}

.value-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted, #8892b0);
  font-style: italic;
}

.why-cta {
  text-align: center;
  padding: 2rem 0;
}

.why-hook {
  font-size: 1.5rem;
  color: var(--text, #e8e8e8);
  margin-bottom: 1.5rem;
}

.why-hook strong {
  color: #C9A84C;
}

/* --- Pricing --- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.pricing-toggle span {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.pricing-toggle span.active {
  color: var(--text);
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-switch.active {
  background: var(--primary);
  border-color: var(--primary);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--text);
  border-radius: 50%;
  transition: transform var(--transition);
}

.toggle-switch.active::after {
  transform: translateX(24px);
}

.pricing-save {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--accent);
  transform: scale(1.04);
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.1);
}

.pricing-card.featured::before {
  content: 'Recommended';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #1a1a2e;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 1rem;
  border-radius: 999px;
}

.pricing-card h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  margin: 1rem 0;
}

.pricing-price .amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
}

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

.pricing-features {
  text-align: left;
  margin: 1.5rem 0 2rem;
  flex: 1;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-features li::before {
  content: '\2713';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-card.disabled {
  opacity: 0.7;
}

.pricing-card.disabled .btn {
  pointer-events: none;
  opacity: 0.5;
}

/* Keep VIP disabled button compact — prevent long text from inflating card height */
.pricing-card.disabled .btn-block {
  font-size: 0.75rem;
  line-height: 1.3;
  padding: 0.625rem 1rem;
  white-space: normal;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* --- Savings Responsive --- */
@media (max-width: 768px) {
  .savings-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-table-wrapper {
    overflow-x: auto;
    padding: 1rem;
  }

  .stat-value {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .savings-stats {
    grid-template-columns: 1fr;
  }
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero responsive --- */
@media (max-width: 768px) {
  .hero {
    padding: 8rem 0 4rem;
  }
  .hero-glass {
    width: 140px;
    height: 210px;
  }
}

/* Expandable plan info */
.plan-info-toggle {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0;
  background: none;
  border: none;
  color: #C9A84C;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: center;
}

.plan-info-toggle:hover {
  color: #e0c060;
}

.plan-info-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted, #8892b0);
  padding: 0 0.5rem;
}

.plan-info-detail.open {
  max-height: 200px;
  padding: 0.75rem 0.5rem 0;
}

/* Reduce gap between Why and Pricing */
#why {
  padding-bottom: 1rem;
}

#pricing {
  padding-top: 1.5rem;
}

/* --- Pricing Footnotes --- */
.pricing-footnotes {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--surface, #16213e);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}

.pricing-footnotes p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted, #8892b0);
  margin-bottom: 0.5rem;
}

.pricing-footnotes p:last-child {
  margin-bottom: 0;
}

.pricing-footnotes strong {
  color: var(--text, #e8e8e8);
}
