/* ==========================================================================
   WP Quick Palette — Marketing Website
   ========================================================================== */

:root {
  --color-primary:       #0d78f2;
  --color-primary-dark:  #0a62c8;
  --color-primary-light: #e8f3ff;
  --color-bg:            #ffffff;
  --color-bg-subtle:     #f6f8fb;
  --color-bg-dark:       #111827;
  --color-bg-dark-2:     #1e2938;
  --color-text:          #1a2433;
  --color-text-muted:    #6b7a8e;
  --color-text-light:    #9eafc2;
  --color-border:        #e2e8f0;
  --color-border-subtle: #f0f4f8;
  --color-pro:           #7c3aed;
  --color-pro-light:     #f3eeff;
  --color-success:       #0e8449;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.14);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.18);

  --font:       system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:  'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  --max-width:  1140px;
  --header-h:  64px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--color-text); background: var(--color-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600; line-height: 1.4;
}
.badge-gray  { background: var(--color-bg-subtle); color: var(--color-text-muted); border: 1px solid var(--color-border); }
.badge-blue  { background: var(--color-primary-light); color: var(--color-primary); border: 1px solid #c5deff; }
.badge-pro   { background: var(--color-pro-light); color: var(--color-pro); border: 1px solid #d9c5ff; }

kbd {
  display: inline-block; padding: 2px 7px;
  background: var(--color-bg-subtle); border: 1px solid var(--color-border);
  border-bottom-width: 2px; border-radius: 5px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--color-text);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .container { height: 100%; }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--color-text); font-weight: 700; font-size: 16px;
  text-decoration: none !important;
}
.logo:hover { text-decoration: none; }
.logo-icon {
  width: 32px; height: 32px; flex-shrink: 0;
}

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--color-text-muted);
  text-decoration: none; transition: color .15s, background .15s;
}
.site-nav a:not(.btn):hover { color: var(--color-text); background: var(--color-bg-subtle); text-decoration: none; }
.site-nav a.active { color: var(--color-primary); }
.site-nav .btn-primary { color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; line-height: 1.2;
  cursor: pointer; border: none; text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 2px 8px rgba(13,120,242,.3); }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: 0 4px 16px rgba(13,120,242,.4); }
.btn-ghost   { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }
.btn-ghost:hover { background: var(--color-bg-subtle); }
.btn-ghost-inverted { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost-inverted:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-pro     { background: var(--color-pro); color: #fff; box-shadow: 0 2px 8px rgba(124,58,237,.3); }
.btn-pro:hover { background: #6d28d9; box-shadow: 0 4px 16px rgba(124,58,237,.4); }
.btn-lg { padding: 13px 26px; font-size: 16px; border-radius: var(--radius-md); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 1px solid var(--color-border); border-radius: 6px; padding: 6px 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--color-text); margin: 3px 0; border-radius: 2px; transition: .2s; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: linear-gradient(160deg, #0f1a2e 0%, #111827 60%, #1a2438 100%);
  color: #fff; padding: 100px 0 80px; overflow: hidden; position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(13,120,242,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; text-align: center; max-width: 760px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 20px;
  background: rgba(13,120,242,.15); border: 1px solid rgba(13,120,242,.3);
  color: #82b8ff; font-size: 13px; font-weight: 600;
  margin-bottom: 28px; letter-spacing: .03em;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px); font-weight: 800; line-height: 1.1;
  letter-spacing: -.03em; margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #c8d8f0 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px); color: #94adc8; line-height: 1.65;
  max-width: 580px; margin: 0 auto 36px;
}

.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

.hero-meta {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-screenshot {
  position: relative; max-width: 820px; margin: 0 auto;
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
}
.hero-screenshot img { width: 100%; display: block; }

.hero-screenshot-img { width: 100%; display: block; }

/* ==========================================================================
   Features
   ========================================================================== */

.features { padding: 96px 0; background: var(--color-bg); }

.section-header { text-align: center; max-width: 560px; margin: 0 auto 56px; }
.section-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--color-primary); margin-bottom: 12px; }
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--color-text-muted); line-height: 1.65; }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--color-border); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.feature-card {
  background: var(--color-bg); padding: 32px 28px;
  transition: background .15s;
}
.feature-card:hover { background: var(--color-bg-subtle); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 20px;
}
.feature-icon.blue   { background: var(--color-primary-light); }
.feature-icon.purple { background: var(--color-pro-light); }
.feature-icon.green  { background: #d1fae5; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.feature-card h3 .pro-tag {
  margin-left: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--color-pro); vertical-align: middle;
  background: var(--color-pro-light); padding: 2px 5px; border-radius: 4px;
}
.feature-card p { font-size: 14px; color: var(--color-text-muted); line-height: 1.65; }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery { padding: 96px 0; background: var(--color-bg-subtle); }

.swiper { width: 100%; padding-bottom: 52px !important; }
.swiper-slide { box-shadow: none !important; }

.slide-figure { margin: 0; }
.slide-figure img {
  display: block;
  width: 100%;
  height: 540px;
  object-fit: contain;
}
.slide-figure figcaption {
  padding: 12px 20px;
  font-size: 13px; color: var(--color-text-muted); line-height: 1.5;
}
.slide-figure figcaption strong { color: var(--color-text); }

.swiper-pagination-bullet { background: var(--color-border) !important; opacity: 1 !important; }
.swiper-pagination-bullet-active { background: var(--color-primary) !important; }
.swiper-button-prev, .swiper-button-next {
  background: var(--color-bg); border: 1px solid var(--color-border);
  width: 44px !important; height: 44px !important; border-radius: 50%;
  box-shadow: var(--shadow-sm);
  color: var(--color-text) !important;
}
.swiper-button-prev::after, .swiper-button-next::after { font-size: 13px !important; font-weight: 700 !important; }

/* ==========================================================================
   Install
   ========================================================================== */

.install { padding: 96px 0; background: var(--color-bg); }

.install-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  max-width: 900px; margin: 0 auto;
}
.install-step { text-align: center; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(13,120,242,.35);
}
.install-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.install-step p  { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }

.install-step code {
  display: block; margin-top: 10px; padding: 8px 12px;
  background: var(--color-bg-subtle); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 12px; color: var(--color-text);
}

/* ==========================================================================
   Keyboard Shortcuts
   ========================================================================== */

.shortcuts { padding: 80px 0; background: var(--color-bg-subtle); }
.shortcuts-table { max-width: 680px; margin: 0 auto; }
.shortcuts-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.shortcuts-table th {
  text-align: left; padding: 10px 16px;
  background: var(--color-bg); border: 1px solid var(--color-border);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted);
}
.shortcuts-table td {
  padding: 12px 16px; border: 1px solid var(--color-border);
  background: var(--color-bg); color: var(--color-text);
}
.shortcuts-table tr:hover td { background: var(--color-bg-subtle); }

/* ==========================================================================
   Pro / Pricing section
   ========================================================================== */

.pro-section { padding: 96px 0; background: var(--color-bg); }

.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; max-width: 820px; margin: 0 auto;
}

.pricing-card {
  position: relative;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  background: var(--color-bg);
}
.pricing-card-pro {
  border-color: var(--color-pro);
  background: linear-gradient(160deg, #faf8ff 0%, #ffffff 60%);
  box-shadow: 0 0 0 1px var(--color-pro), var(--shadow-md);
}

.pricing-badge-pro {
  position: absolute; top: -12px; left: 28px;
  background: var(--color-pro); color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 20px;
}

.pricing-header { margin-bottom: 24px; }
.pricing-header h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.pricing-card-pro .pricing-price { color: var(--color-pro); }
.pricing-period { font-size: 15px; font-weight: 500; color: var(--color-text-muted); margin-left: 2px; }
.pricing-desc { font-size: 14px; color: var(--color-text-muted); line-height: 1.55; }

.pricing-features {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 11px;
}
.pricing-features li {
  display: flex; align-items: baseline; gap: 9px;
  font-size: 14px; color: var(--color-text-muted);
}
.check { font-style: normal; font-weight: 700; color: var(--color-success); flex-shrink: 0; }
.check-pro { color: var(--color-pro); }

.pricing-btn { width: 100%; justify-content: center; }

/* ==========================================================================
   CTA Banner
   ========================================================================== */

.cta-banner {
  padding: 100px 0; text-align: center;
  background: linear-gradient(135deg, #0f1a2e 0%, #1a2438 100%);
  color: #fff;
}
.cta-banner h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.cta-banner p  { font-size: 18px; color: #94adc8; margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #0d1520; color: #4b5a6e; padding: 56px 0 32px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6b7a8e; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: #4b5a6e; text-decoration: none; transition: color .15s; }
.footer-col ul a:hover { color: #94adc8; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.05); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; }
.footer-bottom a { color: #4b5a6e; }
.footer-bottom a:hover { color: #94adc8; }

/* ==========================================================================
   Documentation page
   ========================================================================== */

.docs-layout {
  display: grid; grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--header-h));
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  gap: 48px;
}

/* Sidebar */
.docs-sidebar {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h));
  overflow-y: auto; padding: 32px 0;
  border-right: 1px solid var(--color-border);
}
.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

.sidebar-section { margin-bottom: 28px; }
.sidebar-section-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--color-text-light); padding: 0 12px 8px; margin-bottom: 4px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--color-text-muted); text-decoration: none;
  transition: color .12s, background .12s; line-height: 1.4;
}
.sidebar-link:hover { color: var(--color-text); background: var(--color-bg-subtle); text-decoration: none; }
.sidebar-link.active { color: var(--color-primary); background: var(--color-primary-light); font-weight: 600; }
.sidebar-link .pro-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-pro); flex-shrink: 0; margin-left: auto; }

/* Docs content */
.docs-content { padding: 40px 0 80px 2rem; min-width: 0; }
.docs-content h1 { font-size: 36px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.docs-content .docs-lead { font-size: 18px; color: var(--color-text-muted); margin-bottom: 48px; line-height: 1.6; }

.docs-section { margin-bottom: 64px; scroll-margin-top: calc(var(--header-h) + 24px); }
.docs-section h2 {
  font-size: 24px; font-weight: 700; letter-spacing: -.015em;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.docs-section h2 .badge { margin-left: 8px; vertical-align: middle; font-size: 11px; }
.docs-section h3 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; }
.docs-section p  { font-size: 15px; color: var(--color-text-muted); line-height: 1.75; margin-bottom: 14px; }
.docs-section p strong { color: var(--color-text); }
.docs-section ul, .docs-section ol {
  margin-bottom: 16px; padding-left: 20px;
  font-size: 15px; color: var(--color-text-muted); line-height: 1.75;
}
.docs-section ul { list-style: disc; }
.docs-section ol { list-style: decimal; }
.docs-section li { margin-bottom: 6px; }

.callout {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius-md);
  margin-bottom: 20px; font-size: 14px; line-height: 1.6;
}
.callout-info  { background: var(--color-primary-light); border-left: 3px solid var(--color-primary); color: #1d3b6e; }
.callout-pro   { background: var(--color-pro-light);     border-left: 3px solid var(--color-pro);     color: #3b1d6e; }
.callout-tip   { background: #d1fae5;                    border-left: 3px solid #059669;               color: #064e3b; }

/* Settings reference table */
.settings-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 24px; }
.settings-table th {
  text-align: left; padding: 10px 14px;
  background: var(--color-bg-subtle); border: 1px solid var(--color-border);
  font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted);
}
.settings-table td { padding: 12px 14px; border: 1px solid var(--color-border); vertical-align: top; }
.settings-table td:first-child { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--color-primary); white-space: nowrap; }
.settings-table tr:hover td { background: var(--color-bg-subtle); }

/* Shortcut table in docs */
.shortcut-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 16px; }
.shortcut-table td { padding: 10px 14px; border: 1px solid var(--color-border); }
.shortcut-table td:first-child { width: 200px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .install-steps { grid-template-columns: 1fr; max-width: 480px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--color-border); padding: 20px 0; }
  .docs-content { padding-left: 0; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: 12px; z-index: 99; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 60px 0 48px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
