/* ============================================================
   Free Quote Maker — Marketing Landing Page Stylesheet
   Direction: Premium Minimalist (Ink Navy, Restrained Indigo, White)
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--wq-font-sans);
  color: var(--wq-text-primary);
  background-color: var(--wq-bg-page);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  color: var(--wq-text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--wq-text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ============================================================
   1. NAVIGATION HEADER
   ============================================================ */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wq-border-subtle);
  transition: var(--wq-transition-base);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--wq-text-primary);
  color: #fff;
  border-radius: var(--wq-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  position: relative;
  overflow: hidden;
}

.wq-logo-mark {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
  border-radius: 10px;
  filter: drop-shadow(0 3px 10px rgba(79, 70, 229, 0.35));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.brand-wrap:hover .wq-logo-mark {
  transform: translateY(-2px) scale(1.05);
  filter: drop-shadow(0 8px 20px rgba(79, 70, 229, 0.48));
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--wq-text-primary);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.brand-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: var(--wq-radius-xs);
  background: var(--wq-primary-light);
  color: var(--wq-primary);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--wq-text-secondary);
  transition: color var(--wq-transition-fast);
}

.nav-links a:hover {
  color: var(--wq-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--wq-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--wq-transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--wq-primary);
  color: var(--wq-text-inverse);
  box-shadow: 0 1px 3px rgba(98, 87, 232, 0.25);
}

.btn-primary:hover {
  background: var(--wq-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(98, 87, 232, 0.3);
}

.btn-secondary {
  background: var(--wq-surface);
  color: var(--wq-text-primary);
  border-color: var(--wq-border-default);
}

.btn-secondary:hover {
  background: var(--wq-surface-subtle);
  border-color: var(--wq-text-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--wq-text-secondary);
}

.btn-ghost:hover {
  color: var(--wq-text-primary);
  background: var(--wq-surface-subtle);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--wq-text-primary);
}

/* ============================================================
   2. HERO SECTION
   ============================================================ */
.hero-section {
  padding: 72px 0 88px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(98, 87, 232, 0.04) 0%, transparent 60%);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--wq-surface);
  border: 1px solid var(--wq-border-subtle);
  border-radius: var(--wq-radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--wq-text-secondary);
  box-shadow: var(--wq-shadow-xs);
  margin-bottom: 24px;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background: var(--wq-primary);
  border-radius: 50%;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto 20px;
  color: var(--wq-text-primary);
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--wq-primary);
}

.hero-subtitle {
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto 36px;
  color: var(--wq-text-secondary);
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-micro-text {
  font-size: 13px;
  color: var(--wq-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-micro-text span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   3. HERO DOCUMENT SHOWCASE
   ============================================================ */
.showcase-wrapper {
  margin-top: 60px;
  position: relative;
}

.showcase-frame {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--wq-surface);
  border-radius: var(--wq-radius-lg);
  border: 1px solid var(--wq-border-default);
  box-shadow: var(--wq-shadow-xl);
  overflow: hidden;
  text-align: left;
}

.showcase-bar {
  height: 44px;
  background: var(--wq-surface-subtle);
  border-bottom: 1px solid var(--wq-border-subtle);
  display: flex;
  align-items: center;
  padding: 0 16px;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #DCE2ED;
}

.showcase-address {
  font-size: 12px;
  color: var(--wq-text-muted);
  background: var(--wq-surface);
  padding: 4px 16px;
  border-radius: var(--wq-radius-xs);
  border: 1px solid var(--wq-border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.showcase-content {
  padding: 40px;
  background: #FCFDFE;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Mini Quotation Sheet in Showcase */
.mockup-sheet {
  background: #FFFFFF;
  border: 1px solid var(--wq-border-subtle);
  border-radius: var(--wq-radius-md);
  padding: 32px;
  box-shadow: var(--wq-shadow-md);
  font-size: 13px;
  color: var(--wq-text-primary);
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--wq-primary);
}

.sheet-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--wq-text-primary);
}

.sheet-brand-sub {
  font-size: 11px;
  color: var(--wq-text-muted);
}

.sheet-doc-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--wq-primary);
  text-align: right;
}

.sheet-doc-meta {
  font-size: 11px;
  color: var(--wq-text-secondary);
  text-align: right;
  line-height: 1.4;
}

.sheet-badge {
  display: inline-block;
  background: #EAF7F1;
  color: #16845B;
  font-weight: 600;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

.sheet-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.sheet-party-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--wq-primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.sheet-party-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--wq-text-primary);
}

.sheet-party-meta {
  font-size: 11px;
  color: var(--wq-text-muted);
}

.sheet-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.sheet-table th {
  background: var(--wq-primary);
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
  padding: 6px 8px;
  text-align: left;
}

.sheet-table th:last-child {
  text-align: right;
}

.sheet-table td {
  padding: 8px 8px;
  border-bottom: 1px solid var(--wq-border-subtle);
  font-size: 11px;
}

.sheet-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.sheet-totals {
  margin-left: auto;
  width: 200px;
  font-size: 11px;
}

.sheet-totals-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: var(--wq-text-secondary);
}

.sheet-totals-row.grand {
  border-top: 1px solid var(--wq-border-default);
  margin-top: 6px;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--wq-primary);
}

/* Feature Spotlight side */
.showcase-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spotlight-card {
  background: var(--wq-surface);
  border: 1px solid var(--wq-border-subtle);
  border-radius: var(--wq-radius-md);
  padding: 20px;
  box-shadow: var(--wq-shadow-xs);
  transition: var(--wq-transition-fast);
}

.spotlight-card:hover {
  border-color: var(--wq-primary);
  transform: translateX(4px);
}

.spotlight-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.spotlight-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--wq-primary-light);
  color: var(--wq-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.spotlight-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--wq-text-primary);
}

.spotlight-desc {
  font-size: 13px;
  color: var(--wq-text-secondary);
  line-height: 1.5;
}

/* ============================================================
   4. STATS & VERIFIED TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--wq-surface);
  border-top: 1px solid var(--wq-border-subtle);
  border-bottom: 1px solid var(--wq-border-subtle);
  padding: 40px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.trust-item-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--wq-text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.trust-item-title span {
  color: var(--wq-primary);
}

.trust-item-label {
  font-size: 13px;
  color: var(--wq-text-secondary);
  font-weight: 500;
}

/* ============================================================
   5. HOW IT WORKS SECTION
   ============================================================ */
.section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-badge {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wq-primary);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--wq-text-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  background: var(--wq-surface);
  border: 1px solid var(--wq-border-subtle);
  border-radius: var(--wq-radius-md);
  padding: 32px 28px;
  box-shadow: var(--wq-shadow-xs);
  position: relative;
  transition: transform var(--wq-transition-fast), border-color var(--wq-transition-fast);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--wq-primary);
  box-shadow: var(--wq-shadow-md);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--wq-surface-subtle);
  border: 1px solid var(--wq-border-default);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--wq-primary);
  margin-bottom: 20px;
}

.step-title {
  font-size: 18px;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 14px;
  color: var(--wq-text-secondary);
  line-height: 1.6;
}

/* ============================================================
   6. BENTO GRID FEATURES
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--wq-surface);
  border: 1px solid var(--wq-border-subtle);
  border-radius: var(--wq-radius-md);
  padding: 32px;
  box-shadow: var(--wq-shadow-xs);
  transition: all var(--wq-transition-base);
}

.bento-card:hover {
  border-color: var(--wq-primary);
  box-shadow: var(--wq-shadow-md);
  transform: translateY(-2px);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--wq-primary-light);
  color: var(--wq-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.bento-title {
  font-size: 19px;
  margin-bottom: 10px;
}

.bento-desc {
  font-size: 14px;
  color: var(--wq-text-secondary);
  line-height: 1.6;
}

/* ============================================================
   7. TEMPLATES SHOWCASE PREVIEW
   ============================================================ */
.templates-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.template-card {
  background: var(--wq-surface);
  border: 1px solid var(--wq-border-subtle);
  border-radius: var(--wq-radius-md);
  overflow: hidden;
  box-shadow: var(--wq-shadow-xs);
  transition: all var(--wq-transition-fast);
}

.template-card:hover {
  transform: translateY(-4px);
  border-color: var(--wq-primary);
  box-shadow: var(--wq-shadow-md);
}

.template-thumb {
  height: 200px;
  background: var(--wq-surface-subtle);
  border-bottom: 1px solid var(--wq-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.template-mini-paper {
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border: 1px solid #E0E5EE;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(32, 40, 59, 0.06);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.template-card:hover .template-mini-paper {
  transform: scale(0.98);
}

.template-hover-action {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--wq-primary);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--wq-radius-full);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(98, 87, 232, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all var(--wq-transition-fast);
}

.template-card:hover .template-hover-action {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.template-info {
  padding: 16px;
}

.template-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.template-tag {
  font-size: 12px;
  color: var(--wq-text-muted);
}

/* ============================================================
   8. FAQ ACCORDION
   ============================================================ */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--wq-surface);
  border: 1px solid var(--wq-border-subtle);
  border-radius: var(--wq-radius-md);
  overflow: hidden;
  transition: border-color var(--wq-transition-fast);
}

.faq-item.active {
  border-color: var(--wq-primary);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--wq-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-toggle-icon {
  font-size: 18px;
  color: var(--wq-text-muted);
  transition: transform var(--wq-transition-fast);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--wq-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--wq-transition-base), padding var(--wq-transition-base);
  padding: 0 24px;
  color: var(--wq-text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 24px 20px;
}

/* ============================================================
   9. CTA CALLOUT SECTION
   ============================================================ */
.cta-box {
  background: var(--wq-text-primary);
  color: #fff;
  border-radius: var(--wq-radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(circle, rgba(98, 87, 232, 0.3) 0%, transparent 70%);
}

.cta-title {
  color: #FFFFFF;
  font-size: 38px;
  margin-bottom: 16px;
  position: relative;
}

.cta-desc {
  color: #A6B1C9;
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
}

.cta-actions {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ============================================================
   10. FOOTER
   ============================================================ */
.site-footer {
  background: var(--wq-surface);
  border-top: 1px solid var(--wq-border-subtle);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--wq-text-muted);
  max-width: 320px;
  margin-top: 10px;
}

.footer-nav {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wq-text-primary);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--wq-text-secondary);
  transition: color var(--wq-transition-fast);
}

.footer-col a:hover {
  color: var(--wq-primary);
}

.footer-bottom {
  border-top: 1px solid var(--wq-border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--wq-text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 992px) {
  .hero-title {
    font-size: 40px;
  }
  .showcase-content {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.span-2 {
    grid-column: span 1;
  }
  .templates-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-ghost {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .hero-cta-group {
    flex-direction: column;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .templates-preview-grid {
    grid-template-columns: 1fr;
  }
  .cta-box {
    padding: 40px 24px;
  }
  .cta-title {
    font-size: 28px;
  }
  .cta-actions {
    flex-direction: column;
  }
}
