/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deepest: #0a0a0f;
  --bg-section: #12121a;
  --bg-card: #1a1a2e;
  --bg-card-alt: #1e1e30;
  --gold: #f0b429;
  --gold-dim: #c4922a;
  --gold-glow: rgba(240, 180, 41, 0.3);
  --gold-glow-strong: rgba(240, 180, 41, 0.5);
  --text: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #888888;
  --border: #2a2a3e;
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deepest);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover { opacity: 0.85; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold { color: var(--gold); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #0a0a0f;
  box-shadow: 0 0 20px var(--gold-glow), 0 4px 12px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  opacity: 1;
  background: #f5c040;
  box-shadow: 0 0 30px var(--gold-glow-strong), 0 6px 20px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  opacity: 1;
  background: rgba(240, 180, 41, 0.1);
  transform: translateY(-1px);
}

.btn-block { width: 100%; }

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}

.nav-logo:hover { opacity: 1; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links-cta { display: none; }

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  opacity: 1;
}

.nav-cta {
  padding: 10px 24px;
  background: var(--gold);
  color: #0a0a0f;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.25s;
}

.nav-cta:hover {
  opacity: 1;
  box-shadow: 0 0 16px var(--gold-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Skip Link ===== */
.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--gold);
  color: #0a0a0f;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.icon-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #0a0a0f;
  outline-offset: 2px;
}

/* ===== Hero ===== */
.hero {
  padding: 100px 0 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(240, 180, 41, 0.06) 0%, transparent 60%),
              var(--bg-deepest);
  overflow: hidden;
}

.page-hero {
  padding: 140px 0 100px;
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 100px);
}

.hero-center {
  text-align: center;
  flex: 1;
  padding: 0 40px;
  max-width: 600px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin: 0 auto 48px;
  line-height: 1.7;
}

.showcase-frame {
  position: relative;
  width: 480px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(240, 180, 41, 0.15), 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(240, 180, 41, 0.2);
}

.showcase-video {
  display: block;
  width: 100%;
  height: auto;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .showcase-frame {
    width: 240px;
  }
  .hero-center {
    padding: 0 24px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }
  .hero-layout {
    flex-direction: column;
    gap: 40px;
    min-height: auto;
  }
  .hero-center {
    order: -1;
    padding: 0 24px;
  }
  .showcase-frame {
    width: 200px;
    align-self: center;
  }
}

@media (max-width: 480px) {
  .showcase-frame {
    width: 160px;
  }
}

/* ===== Section Shared ===== */
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
  background: var(--bg-section);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.feature-card {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.3s ease;
}

.feature-card--center-left {
  grid-column: 2 / span 2;
}

.feature-card--center-right {
  grid-column: 4 / span 2;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dim);
  box-shadow: 0 0 24px var(--gold-glow), 0 8px 32px rgba(0,0,0,0.3);
}

.pro-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0a0a0f;
  background: linear-gradient(135deg, #f0b429, #e09422);
  border-radius: 20px;
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-card p:last-child {
  margin-bottom: 0;
}

.feature-video {
  display: block;
  width: 100%;
  margin-top: auto;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--border);
  background: #000;
}

/* ===== Testimonials / Social Proof ===== */
.testimonials {
  padding: 100px 0;
  background: var(--bg-deepest);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.3;
}

.testimonial-quote {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 16px 0 20px;
  position: relative;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.testimonial-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ===== How It Works ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-deepest);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.step {
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: #0a0a0f;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.step-icon {
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== Pricing ===== */
.pricing {
  padding: 100px 0;
  background: var(--bg-section);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.toggle-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s;
}

.toggle-label.active { color: var(--text); }

.save-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(240, 180, 41, 0.15);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 10px;
  margin-left: 4px;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 50%;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.toggle-switch.yearly .toggle-knob {
  transform: translateX(24px);
}

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

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

.pricing-card.pro {
  border-color: var(--gold-dim);
  box-shadow: 0 0 32px var(--gold-glow);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 20px;
  background: linear-gradient(135deg, #f0b429, #e09422);
  color: #0a0a0f;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-header {
  margin-bottom: 28px;
}

.pricing-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
}

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

.pricing-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.pricing-features li svg {
  flex-shrink: 0;
}

/* ===== Downloads ===== */
.downloads {
  padding: 100px 0;
  background: var(--bg-deepest);
}

.download-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
}

.download-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.version-badge {
  padding: 6px 16px;
  background: rgba(240, 180, 41, 0.15);
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 20px;
}

.release-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.requirements {
  text-align: left;
  margin-bottom: 32px;
}

.requirements h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text);
}

.requirements ul {
  list-style: none;
}

.requirements li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.requirements li svg { flex-shrink: 0; }

.download-card > .btn {
  margin-bottom: 36px;
}

.download-coming-soon {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
  font-style: italic;
}

.quick-start {
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.quick-start h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.code-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-deepest);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.code-block code {
  color: var(--gold);
  font-size: 0.85rem;
  white-space: nowrap;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.copy-btn:hover { color: var(--text); }

.quick-start-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.install-details {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.install-details summary {
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
}

.install-details summary:hover {
  color: var(--text);
}

.install-details[open] summary {
  margin-bottom: 12px;
}

/* ===== Community ===== */
.community {
  padding: 100px 0;
  background: var(--bg-section);
}

.community-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.3s ease;
  color: var(--text);
  display: block;
}

.community-card:hover {
  opacity: 1;
  transform: translateY(-4px);
  border-color: var(--gold-dim);
  box-shadow: 0 0 24px var(--gold-glow);
}

.community-icon { margin-bottom: 16px; }

.community-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.community-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.community-link {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  padding: 60px 0 32px;
  background: var(--bg-deepest);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo {
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .feature-card--center-left,
  .feature-card--center-right {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(12px);
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open .nav-links-cta {
    display: block;
    padding-top: 16px;
    border-bottom: none;
  }

  .nav-links.open .nav-links-cta .btn {
    width: 100%;
  }

  .nav-links.open li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open li:last-child { border-bottom: none; }

  .hero { padding: 130px 0 80px; }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card,
  .feature-card--center-left,
  .feature-card--center-right {
    grid-column: auto;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .community-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .download-card {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.6rem; }
  .pricing-card { padding: 32px 20px; }
  .price { font-size: 2.2rem; }
}

/* ===== Contact Form ===== */
.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group .optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-deepest);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

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

.form-status {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}

@media (max-width: 480px) {
  .contact-card {
    padding: 28px 20px;
  }
}

/* ===== Legal / Prose Pages ===== */
.legal-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 44px;
  text-align: left;
}

.legal-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text);
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-card p {
  margin-bottom: 14px;
}

.legal-card ul,
.legal-card ol {
  margin: 0 0 18px 20px;
}

.legal-card li {
  margin-bottom: 8px;
}

.legal-card a {
  color: var(--gold);
}

.legal-card .updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 480px) {
  .legal-card {
    padding: 32px 24px;
  }
}

/* ===== Purchase Page ===== */
.help-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 4px;
  margin-bottom: 12px;
}

.help-text code {
  background: var(--bg-deepest);
  color: var(--gold);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.help-text a {
  color: var(--gold);
}

.plan-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.plan-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.plan-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.plan-option-inner {
  background: var(--bg-deepest);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.plan-option:hover .plan-option-inner {
  border-color: var(--gold-dim);
}

.plan-option input[type="radio"]:checked + .plan-option-inner {
  border-color: var(--gold);
  background: rgba(240, 180, 41, 0.06);
  box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(240, 180, 41, 0.12);
}

.plan-option input[type="radio"]:focus-visible + .plan-option-inner {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.plan-option-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.plan-option-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(240, 180, 41, 0.15);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 10px;
}

.plan-option-price {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  margin-top: 6px;
}

.plan-option-period {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 2px;
}

.file-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-deepest);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.file-dropzone:hover,
.file-dropzone:focus-visible {
  border-color: var(--gold-dim);
  outline: none;
}

.file-dropzone.dragging {
  border-color: var(--gold);
  background: rgba(240, 180, 41, 0.06);
}

.file-dropzone-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.file-dropzone-text code {
  background: var(--bg-section);
  color: var(--gold);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
}

.file-dropzone-filename {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  word-break: break-all;
}

.file-dropzone-filename:empty {
  display: none;
}

.paste-details {
  margin-top: 12px;
}

.paste-details summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 0;
  user-select: none;
  list-style: none;
}

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

.paste-details summary::before {
  content: '▸ ';
  color: var(--gold);
  display: inline-block;
  transition: transform 0.2s;
}

.paste-details[open] summary::before {
  content: '▾ ';
}

.paste-details summary:hover {
  color: var(--text-secondary);
}

.paste-details textarea {
  margin-top: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
}

.file-preview {
  background: var(--bg-deepest);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.file-preview-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.file-preview-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.85rem;
  padding: 3px 0;
}

.file-preview-row span {
  color: var(--text-muted);
  min-width: 80px;
}

.file-preview-row code {
  color: var(--text);
  background: transparent;
  padding: 0;
  word-break: break-all;
  font-family: 'Courier New', monospace;
}

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

/* ===== Focus Indicators ===== */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--gold-glow);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
