@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ========== Design Tokens ========== */
:root {
  --background: hsl(40, 33%, 98%);
  --foreground: hsl(220, 20%, 15%);
  --card: #ffffff;
  --card-foreground: hsl(220, 20%, 15%);
  --primary: hsl(38, 92%, 50%);
  --primary-light: hsl(38, 92%, 95%);
  --primary-border: hsl(38, 92%, 80%);
  --primary-foreground: #ffffff;
  --muted: hsl(40, 20%, 94%);
  --muted-foreground: hsl(220, 10%, 45%);
  --border: hsl(40, 15%, 88%);
  --success: hsl(142, 72%, 42%);
  --warning: hsl(38, 92%, 50%);
  --radius: 0.75rem;
  --ring: hsl(38, 92%, 50%);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ========== Layout ========== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding { padding: 6rem 0; }
.section-padding-sm { padding: 4rem 0; }

/* ========== Header ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(252, 251, 249, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 768px) {
  .header-inner { height: 5rem; }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foreground);
}
.logo-icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 1.25rem; height: 1.25rem; color: var(--primary); }

/* Desktop nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .desktop-nav { display: flex; } }

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-link:hover { color: var(--foreground); }

/* Features dropdown */
.features-dropdown {
  position: relative;
}
.features-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.features-dropdown .nav-link svg {
  width: 1rem; height: 1rem;
  transition: transform 0.2s;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  min-width: 16rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  z-index: 100;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
}
.features-dropdown:hover .dropdown-menu { display: block; }
.features-dropdown:hover .nav-link svg { transform: rotate(180deg); }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: background 0.15s;
}
.dropdown-item:hover { background: var(--muted); }
.dropdown-item svg { width: 1rem; height: 1rem; color: var(--primary); }

/* Auth buttons */
.header-auth {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 768px) { .header-auth { display: flex; } }

/* Mobile menu */
.mobile-toggle {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}
.mobile-toggle svg { width: 1.5rem; height: 1.5rem; }
@media (min-width: 768px) { .mobile-toggle { display: none; } }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
}
.mobile-menu.open { display: flex; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

.mobile-menu .nav-link { text-align: left; font-size: 0.875rem; }
.mobile-features-list {
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-features-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.mobile-features-list a svg { width: 1rem; height: 1rem; color: var(--primary); }
.mobile-features-list a:hover { color: var(--foreground); }

.mobile-auth {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.5rem;
}
.mobile-auth .btn { flex: 1; text-align: center; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  line-height: 1.4;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--muted); }

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--muted); color: var(--foreground); }

.btn-hero {
  background: linear-gradient(135deg, var(--primary), hsl(30, 90%, 48%));
  color: var(--primary-foreground);
  border-color: transparent;
}
.btn-hero:hover { opacity: 0.9; }

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}
.btn-xl {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}

.btn svg { width: 1rem; height: 1rem; }
.btn-lg svg, .btn-xl svg { width: 1.25rem; height: 1.25rem; }

.btn-uppercase {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ========== Cards ========== */
.section-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.section-card:hover {
  border-color: var(--primary-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* ========== Hero ========== */
.hero-gradient {
  background: linear-gradient(135deg, var(--primary), hsl(30, 90%, 48%));
}
.hero-section {
  padding: 8rem 0 6rem;
  background: linear-gradient(to bottom, var(--primary-light), var(--background));
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.badge svg { width: 1rem; height: 1rem; }

h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.15; margin-bottom: 1.5rem; }
@media (min-width: 768px) { h1 { font-size: 3rem; } }

h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
@media (min-width: 768px) { h2 { font-size: 2.25rem; } }

h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }

.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-success { color: var(--success); }

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

.trust-indicators {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}
.trust-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  margin-right: 0.5rem;
}

/* ========== Section Headers ========== */
.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}
.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

/* ========== Grids ========== */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ========== Icon Box ========== */
.icon-box {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.2s;
}
.section-card:hover .icon-box { background: hsl(38, 92%, 90%); }
.icon-box svg { width: 1.5rem; height: 1.5rem; color: var(--primary); }

.icon-box-sm {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-box-sm svg { width: 1.25rem; height: 1.25rem; color: var(--primary); }

.core-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

/* ========== How It Works ========== */
.steps-grid {
  display: grid;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

.step { text-align: center; position: relative; }
.step-icon-wrap {
  display: inline-flex;
  position: relative;
  margin-bottom: 1.5rem;
}
.step-icon {
  width: 6rem; height: 6rem;
  border-radius: 1rem;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.step-icon svg { width: 2.5rem; height: 2.5rem; color: var(--primary); }
.step-number {
  position: absolute;
  top: -0.5rem; right: -0.5rem;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-foreground);
  background: linear-gradient(135deg, var(--primary), hsl(30, 90%, 48%));
}

.step h3 { margin-bottom: 0.5rem; }
.step p {color: var(--muted-foreground); }

/* ========== Muted Section BG ========== */
.bg-muted { background: hsl(40, 20%, 96%); }

/* ========== Pricing ========== */
.billing-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--muted);
  border-radius: 0.5rem;
  padding: 0.25rem;
  margin: 0 auto 2rem;
  width: fit-content;
}
.billing-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  font-family: inherit;
  transition: all 0.2s;
}
.billing-btn.active {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.trial-notice {
  max-width: 28rem;
  margin: 0 auto 2rem;
  background: hsl(142, 72%, 95%);
  border: 1px solid hsl(142, 50%, 80%);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--success);
}

.pricing-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 48rem;
  margin: 0 auto 3rem;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }

.pricing-card { position: relative; }
.pricing-card.popular {
  outline: 2px solid var(--primary);
  outline-offset: -1px;
  border-color: var(--primary-border);
}
.popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-foreground);
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary), hsl(30, 90%, 48%));
  white-space: nowrap;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
}
.price-period { font-size: 1rem; color: var(--muted-foreground); }
.price-note {margin-bottom: 1rem; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.feature-list li svg {
  width: 1rem; height: 1rem;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.plan-target {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1.5rem;
  transition: box-shadow 0.2s;
}
details[open] { box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
details summary {
  padding: 1.25rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '';
  width: 1rem; height: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s;
  flex-shrink: 0;
}
details[open] summary::after { transform: rotate(180deg); }
details .faq-answer {
  padding-bottom: 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ========== Reviews ========== */
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.stars { display: flex; gap: 0.125rem; margin-bottom: 0.75rem; }
.stars svg { width: 1rem; height: 1rem; color: var(--warning); }
.review-text { font-size: 0.875rem; color: var(--foreground); margin-bottom: 0.75rem; }
.review-name { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); }

/* ========== CTA Block ========== */
.cta-block {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
}
@media (min-width: 768px) { .cta-block { padding: 4rem 3rem; } }
.cta-block h2 { margin-bottom: 1rem; }
.cta-block p { max-width: 36rem; margin: 0 auto 2rem; }

.cta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
}
@media (min-width: 768px) { .cta-card { padding: 4rem 3rem; } }

/* ========== Embed code ========== */
.embed-block {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.embed-block code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  word-break: break-all;
}

/* ========== Color Presets ========== */
.color-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.color-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.color-preview { height: 8rem; display: flex; align-items: center; justify-content: center; text-align: center; }
.color-meta {
  padding: 1rem;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.color-meta span { font-size: 0.875rem; font-weight: 500; }
.color-swatch {
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
}

/* ========== Template Cards ========== */
.template-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s;
}
.template-card:hover { border-color: var(--primary-border); }
.template-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.template-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Placeholders */
.placeholder-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .placeholder-grid { grid-template-columns: repeat(2, 1fr); } }
.placeholder-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--muted);
  border-radius: 0.5rem;
}
.placeholder-item code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.8125rem;
  color: var(--primary);
}
.placeholder-item span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ========== Check List ========== */
.check-list {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) { .check-list { grid-template-columns: repeat(2, 1fr); } }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.check-icon {
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.check-icon svg { width: 0.75rem; height: 0.75rem; color: var(--primary); }

/* Feature pills (testimonials section) */
.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}
.feature-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* ========== Animations ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ========== Utilities ========== */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.pt-20 { padding-top: 5rem; }
.font-mono { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (min-width: 768px) {
  .hero-section .hero-subtitle {
    margin-left: 0;
  }
  .hero-section .hero-buttons,
  .hero-section .trust-indicators {
    justify-content: flex-start;
  }
}