/* ═══════════════════════════════════════
   COMPONENTS — Nav / Buttons / Cards / FAQ / Tables
   ═══════════════════════════════════════ */

/* ── Navbar ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--n2);
  box-shadow: 0 1px 8px rgba(27,34,40,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--w-xl);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-name {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--n9);
  letter-spacing: -.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--n6);
  transition: color .15s var(--ease);
}
.nav-link:hover { color: var(--pri); }

.nav-cta {
  margin-left: var(--sp-4);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 2px 0;
  background: none;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--n7);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: var(--n0);
  border-bottom: 1px solid var(--n2);
  padding: var(--sp-6);
  box-shadow: var(--sh-lg);
  flex-direction: column;
  gap: var(--sp-4);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-link {
  font-size: 1.0625rem;
  padding: var(--sp-3) 0;
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: var(--r);
  transition: background .18s var(--ease), transform .15s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: scale(.97); }

.btn-lg {
  font-size: 1rem;
  padding: 14px 28px;
}

.btn-md {
  font-size: 0.9375rem;
  padding: 11px 22px;
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 8px 16px;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 16px var(--pri-a25);
}
.btn-primary:hover {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--pri-a35);
}

.btn-secondary {
  background: var(--n0);
  color: var(--n7);
  border: 1.5px solid var(--n3);
}
.btn-secondary:hover {
  border-color: var(--n4);
  background: var(--n1);
  color: var(--n7);
}

.btn-ghost {
  background: none;
  color: var(--pri);
  font-weight: 600;
}
.btn-ghost:hover { color: var(--pri-h); }

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Cards ── */
.card {
  background: var(--n0);
  border: 1px solid var(--n2);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}

.card:hover {
  border-color: var(--pri-mute);
  box-shadow: 0 4px 20px var(--pri-a08), 0 1px 3px var(--pri-a06);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r);
  background: var(--pri-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  color: var(--pri);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--sp-2);
}

.card p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ── Feature card (icon top) ── */
.feature-card {
  text-align: center;
  padding: var(--sp-10) var(--sp-6);
}

.feature-card .card-icon {
  margin: 0 auto var(--sp-5);
  width: 56px;
  height: 56px;
}

.feature-card .card-icon svg {
  width: 28px;
  height: 28px;
}

/* ── Pricing card ── */
.pricing-card {
  border: 2px solid var(--n2);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  background: var(--n0);
  text-align: center;
  position: relative;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}

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

.pricing-card.featured {
  border-color: var(--pri);
  box-shadow: 0 0 0 1px var(--pri), var(--sh-lg);
  transform: scale(1.04);
  z-index: 1;
  position: relative;
}

.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing-card .badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: .03em;
}

.pricing-card .plan-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--n5);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--sp-3);
}

.pricing-card .plan-price {
  font-family: var(--font-brand);
  font-size: 3rem;
  font-weight: 800;
  color: var(--n9);
  letter-spacing: -.03em;
  line-height: 1;
}

.pricing-card .plan-price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--n4);
}

.pricing-card .plan-desc {
  font-size: 0.875rem;
  color: var(--n5);
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.pricing-card .plan-features {
  text-align: left;
  margin-bottom: var(--sp-6);
}

.pricing-card .plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--n7);
  padding: 6px 0;
}

.pricing-card .plan-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.pricing-card .plan-features li .check {
  color: var(--ok);
}
.pricing-card .plan-features li .cross {
  color: var(--n3);
}

/* ── Comparison table ── */
.comp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
}

.comp-table th,
.comp-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--n2);
}

.comp-table th {
  font-weight: 700;
  color: var(--n5);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--n1);
}

.comp-table th:first-child,
.comp-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--n7);
}

.comp-table td:first-child {
  font-weight: 500;
}

.comp-table .col-highlight {
  background: var(--pri-a04);
}

.comp-table .col-highlight-head {
  background: var(--pri);
  color: #fff !important;
  font-weight: 800;
}

.comp-table thead th:first-child {
  border-radius: var(--r) 0 0 0;
}
.comp-table thead th:last-child {
  border-radius: 0 var(--r) 0 0;
}

.comp-table tbody tr:nth-child(even) {
  background: var(--pri-a03);
}

.comp-table tbody tr:hover {
  background: var(--pri-a06);
}

.comp-table .icon-check {
  color: var(--ok);
  font-size: 1.25rem;
  font-weight: 700;
}
.comp-table .icon-cross {
  color: var(--n3);
  font-size: 1.25rem;
}
.comp-table .icon-partial {
  color: var(--warn);
  font-size: 1.25rem;
  font-weight: 700;
}

/* ── FAQ accordion ── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--n8);
  cursor: pointer;
  list-style: none;
  transition: color .15s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-item summary:hover { color: var(--pri); }

.faq-item .faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--n4);
  transition: transform .25s var(--ease), color .15s;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--pri);
}

.faq-item .faq-answer {
  padding: 0 0 var(--sp-5);
  font-size: 0.9375rem;
  color: var(--n6);
  line-height: 1.7;
}

/* ── Steps (How It Works) ── */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--sp-12);
  position: relative;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 260px;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
  box-shadow: 0 4px 16px var(--pri-a25);
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: var(--sp-2);
}

.step p {
  font-size: 0.9375rem;
}

/* Connector line between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 40px);
  width: calc(100% - 32px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--n3), var(--n3) 6px, transparent 6px, transparent 12px);
}

@media (max-width: 768px) {
  .steps {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-8);
  }
  .step::after { display: none; }
}

/* ── Zigzag feature blocks ── */
.zigzag {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
}

.zigzag.reverse {
  flex-direction: row-reverse;
}

.zigzag-text {
  flex: 1;
}

.zigzag-media {
  flex: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  border: 1px solid var(--n2);
}

.zigzag-media img {
  width: 100%;
  display: block;
}

.zigzag-text h3 {
  font-size: 1.5rem;
  margin-bottom: var(--sp-3);
}

.zigzag-text p {
  font-size: 1.0625rem;
  margin-bottom: var(--sp-5);
}

.zigzag-text ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.zigzag-text ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--n7);
}

.zigzag-text ul li svg {
  width: 18px;
  height: 18px;
  color: var(--ok);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .zigzag, .zigzag.reverse {
    flex-direction: column;
    gap: var(--sp-8);
  }
}

/* ── Social proof bar ── */
.proof-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-10);
  padding: var(--sp-6) 0;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--n6);
}

.proof-item svg {
  width: 20px;
  height: 20px;
  color: var(--pri);
}

@media (max-width: 768px) {
  .proof-bar {
    gap: var(--sp-5);
    justify-content: flex-start;
  }
  .proof-item {
    font-size: 0.8125rem;
    flex: 0 0 calc(50% - 10px);
  }
}

/* ── Use case cards ── */
.usecase-card {
  padding: var(--sp-8);
  border: 1px solid var(--n2);
  border-radius: var(--r-lg);
  background: var(--n0);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}

.usecase-card:hover {
  border-color: var(--pri-mute);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.usecase-icon {
  font-size: 2rem;
  margin-bottom: var(--sp-3);
}

.usecase-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--sp-2);
}

.usecase-card p {
  font-size: 0.9375rem;
}

/* ── Footer ── */
.footer {
  background: var(--n9);
  color: var(--n4);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}

.footer-brand p {
  color: var(--n4);
  font-size: 0.875rem;
  margin-top: var(--sp-3);
  max-width: 280px;
}

.footer h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--n3);
  margin-bottom: var(--sp-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--n4);
  transition: color .15s var(--ease);
}
.footer-links a:hover { color: var(--n0); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--sp-3);
    text-align: center;
  }
}

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

/* ── CTA banner ── */
.cta-banner {
  background: var(--grad);
  border-radius: var(--r-xl);
  padding: var(--sp-16) var(--sp-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 100%, rgba(255,255,255,.08), transparent),
    radial-gradient(ellipse 40% 40% at 80% 0%, rgba(255,255,255,.05), transparent);
  pointer-events: none;
}

.cta-banner h2 {
  color: #fff;
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,.8);
  position: relative;
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-8);
  font-size: 1.125rem;
}

.cta-banner .btn {
  position: relative;
  background: #fff;
  color: var(--pri-deep);
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.cta-banner .btn:hover {
  color: var(--pri-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
}

@media (max-width: 640px) {
  .cta-banner {
    padding: var(--sp-10) var(--sp-5);
    border-radius: var(--r-lg);
  }
  .cta-banner h2 { font-size: 1.5rem; }
}

/* ── Pricing toggle ── */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--n1);
  border: 1px solid var(--n2);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: var(--sp-10);
}

.pricing-toggle-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--n5);
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}

.pricing-toggle-btn.active {
  background: var(--n0);
  color: var(--n9);
  box-shadow: var(--sh);
}

.pricing-toggle-save {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ok);
  background: var(--ok-bg);
  padding: 3px 8px;
  border-radius: 100px;
}

/* ── Blog card ── */
.blog-card {
  border: 1px solid var(--n2);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--n0);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}

.blog-card:hover {
  border-color: var(--pri-mute);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--n2);
}

.blog-card-body {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
}

.blog-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pri);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: var(--sp-2);
}

.blog-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--sp-2);
  line-height: 1.35;
}

.blog-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--n5);
}

.blog-card-meta {
  margin-top: var(--sp-3);
  font-size: 0.8125rem;
  color: var(--n4);
}

/* ── Blog article ── */
.article-content {
  max-width: 740px;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.article-content h2 {
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
}

.article-content h3 {
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
}

.article-content p {
  margin-bottom: var(--sp-5);
}

.article-content ul, .article-content ol {
  margin-bottom: var(--sp-5);
  padding-left: var(--sp-6);
}

.article-content li {
  margin-bottom: var(--sp-2);
  list-style: disc;
  color: var(--n6);
}

.article-content ol li {
  list-style: decimal;
}

.article-content code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--n1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--pri-deep);
}

.article-content pre {
  background: var(--n9);
  color: var(--n3);
  padding: var(--sp-5);
  border-radius: var(--r);
  overflow-x: auto;
  margin-bottom: var(--sp-5);
}

.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.article-content img {
  border-radius: var(--r);
  border: 1px solid var(--n2);
  margin: var(--sp-6) 0;
}

.article-content blockquote {
  border-left: 3px solid var(--pri);
  padding-left: var(--sp-5);
  margin: var(--sp-6) 0;
  color: var(--n6);
  font-style: italic;
}

/* ── Table of contents (blog sidebar) ── */
.toc {
  position: sticky;
  top: 88px;
  font-size: 0.8125rem;
}

.toc h4 {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--n4);
  margin-bottom: var(--sp-3);
}

.toc a {
  display: block;
  padding: 4px 0 4px 12px;
  color: var(--n5);
  border-left: 2px solid var(--n2);
  transition: color .15s var(--ease), border-color .15s var(--ease);
}

.toc a:hover,
.toc a.active {
  color: var(--pri);
  border-left-color: var(--pri);
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--n4);
  margin-bottom: var(--sp-6);
}

.breadcrumb a { color: var(--n5); }
.breadcrumb a:hover { color: var(--pri); }

.breadcrumb .sep {
  color: var(--n3);
}
