/* Ring Lantern - Product Page Styles */

:root {
  /* Colors */
  --bg: #fafafa;
  --bg-alt: #f4f4f5;
  --text: #18181b;
  --text-muted: #71717a;
  --border: #e4e4e7;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;
  --accent: #0ea5e9;
  --success: #16a34a;
  --warning: #eab308;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', var(--font-sans);

  /* Spacing */
  --section-pad: clamp(48px, 8vw, 96px);
  --wrap-width: min(1200px, calc(100% - 48px));

  /* Transitions */
  --transition: 150ms ease;

  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

* { box-sizing: border-box; margin: 0; }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; }

/* Layout */
.wrap { width: var(--wrap-width); margin-inline: auto; }
.skip { position: absolute; top: -100px; z-index: 100; background: var(--primary); color: white; padding: 12px 16px; border-radius: 4px; }
.skip:focus { top: 8px; left: 8px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand img { height: 32px; width: auto; }
.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--text); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-nav {
  display: flex;
  gap: 8px;
  padding-right: 16px;
  border-right: 1px solid var(--border);
}
.lang-nav a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
}
.lang-nav a:hover { background: var(--bg-alt); color: var(--text); }
.lang-nav a[aria-current="page"] { background: var(--primary-light); color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-outline {
  background: white;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--text); background: var(--bg-alt); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* Hero */
.hero {
  padding: var(--section-pad) 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: white;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-content { max-width: 540px; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
h1 em { font-style: normal; color: var(--accent); }
.lede {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 440px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero .btn-ghost { color: white; border: 1px solid rgba(255,255,255,0.3); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.1); }
.hero-image {
  display: flex;
  justify-content: flex-end;
}
.hero-image img {
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

/* Section styling */
section { padding: var(--section-pad) 0; }
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Value Props */
.value-props { background: white; }
.props-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.prop {
  text-align: center;
  padding: 24px;
}
.prop-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--primary);
}
.prop-icon svg { width: 100%; height: 100%; }
.prop h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.prop p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Pricing */
.pricing { background: var(--bg-alt); }
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(29,78,216,0.15);
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
}
.plan-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.plan-price {
  margin-bottom: 8px;
}
.price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: top;
}
.price-amount {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.price-period {
  font-size: 1rem;
  color: var(--text-muted);
}
.price-custom {
  font-size: 2rem;
  font-weight: 700;
}
.plan-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pricing-card .btn {
  width: 100%;
  margin-bottom: 24px;
}
.plan-features {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.plan-features .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--success);
}

/* Comparison Table */
.comparison { background: white; }
.table-wrapper {
  overflow-x: auto;
  margin-top: 32px;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison-table th {
  font-weight: 600;
  background: var(--bg-alt);
}
.comparison-table th:first-child { text-align: left; }
.comparison-table th:not(:first-child),
.comparison-table td:not(:first-child) { text-align: center; }
.feature-name { font-weight: 500; }
.comparison-table .check {
  width: 20px;
  height: 20px;
  color: var(--success);
  margin: 0 auto;
}
.not-included { color: var(--text-muted); }

/* How It Works */
.how-it-works { background: var(--bg-alt); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 48px;
}
.step { text-align: center; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 20px;
}
.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ */
.faq { background: white; }
.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--text-muted);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 0 20px;
  color: var(--text-muted);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
  color: white;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-section p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 24px; }
.cta-section .btn-primary {
  background: white;
  color: var(--primary);
}
.cta-section .btn-primary:hover { background: var(--bg-alt); }
.cta-note {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 16px;
}

/* Footer */
.footer {
  background: #0f172a;
  color: white;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-col a:hover { color: white; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.version {
  margin-left: 16px;
  padding: 2px 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.75rem;
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: white; }

/* Responsive */
@media (max-width: 1024px) {
  .pricing-cards,
  .props-grid,
  .steps {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; min-height: auto; padding: 16px 0; }
  .main-nav { order: 3; width: 100%; justify-content: center; gap: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
  .header-actions { gap: 8px; }
  .lang-nav { display: none; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .lede { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-image { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  :root { --wrap-width: calc(100% - 32px); }
  .main-nav { gap: 12px; flex-wrap: wrap; }
  .pricing-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
