/* SmartParser — Burgundy accent */
:root {
  --accent: #a4133c;
  --accent-light: rgba(164, 19, 60, 0.08);
  --accent-dark: #85102f;
  --text-primary: #1a1a2e;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --bg-page: #ffffff;
  --bg-section: #f8fafc;
  --bg-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
}

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

body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}
h1 { font-size: 2.75rem; margin-bottom: 1.25rem; }
h2 { font-size: 1.875rem; line-height: 1.25; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; line-height: 1.4; font-weight: 600; margin-bottom: 0.5rem; }
h4 { font-size: 1.0625rem; line-height: 1.4; font-weight: 600; margin-bottom: 0.25rem; }

p { margin-bottom: 1rem; color: var(--text-secondary); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.wrap--narrow { max-width: 720px; }

/* Nav */
.site-nav {
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav__logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}
.site-nav__logo span { color: var(--accent); }
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav__link:hover,
.site-nav__link--active { color: var(--text-primary); }
.site-nav__form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-nav__input {
  font-size: 0.875rem;
  font-family: inherit;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  outline: none;
  width: 180px;
  transition: border-color 0.15s;
}
.site-nav__input:focus {
  border-color: var(--accent);
}
.site-nav__cta {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  padding: 0.5rem 1.125rem;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.site-nav__cta:hover {
  opacity: 0.85;
}
.site-nav__toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; }

/* Hero — centered, white bg, accent underline */
.page-hero {
  padding: 5rem 0 4rem;
  text-align: center;
}
.page-hero h1 {
  display: inline-block;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.35rem;
}
.page-hero .subtitle {
  max-width: 600px;
  margin: 1rem auto 1.5rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
}
.page-hero .stacked-form {
  max-width: 380px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid transparent;
}
.btn--outline {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}
.btn--outline:hover {
  background: var(--accent);
  color: #fff;
}
.btn--filled {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--filled:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn--full { width: 100%; }

/* Stacked form (email on top, button below) */
.stacked-form { display: flex; flex-direction: column; gap: 0.75rem; }
.stacked-form__input {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.stacked-form__input:focus { border-color: var(--accent); }

/* Trust row */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.trust-row__item {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Sections */
.page-section {
  padding: 5rem 0;
}
.page-section--alt {
  background: var(--bg-section);
}
.page-section__header {
  text-align: center;
  margin-bottom: 3rem;
}
.page-section__header p {
  max-width: 580px;
  margin: 0.5rem auto 0;
}

/* Badge — lowercase, bordered pill */
.tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 0.25rem 0.875rem;
  margin-bottom: 0.75rem;
}

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Content cards — border, no shadow */
.content-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  background: var(--bg-page);
}
.content-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 8px;
  margin-bottom: 1rem;
}
.content-card h3 { margin-bottom: 0.5rem; }
.content-card p { margin-bottom: 0; font-size: 0.9375rem; }

/* Pricing */
.price-tier {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
}
.price-tier--recommended {
  border-top: 3px solid var(--accent);
}
.price-tier__name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.price-tier__price {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.price-tier__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}
.price-tier__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.price-tier__features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}
.price-tier__features li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.price-tier__features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.price-tier__note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* FAQ — chevron rotation */
.faq-group { margin-top: 2rem; }
.faq-group h2 { text-align: center; margin-bottom: 2rem; }
.faq-group details {
  border-bottom: 1px solid var(--border);
}
.faq-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-primary);
}
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::marker { display: none; content: ""; }
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--text-muted);
}
details[open] .faq-chevron { transform: rotate(180deg); }
.faq-group .faq-body {
  padding: 0 0 1.25rem;
}
.faq-group .faq-body p { margin-bottom: 0; font-size: 0.9375rem; }

/* CTA block */
.cta-block {
  padding: 5rem 0;
  background: var(--accent-light);
}
.cta-block__inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.cta-block__inner h2 { margin-bottom: 0.5rem; }
.cta-block__inner p { margin-bottom: 1.5rem; }
.cta-block .stacked-form { max-width: 380px; margin: 0 auto; }

/* Footer */
.site-footer {
  background: var(--bg-section);
  padding: 3rem 0 2rem;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.site-footer__logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
}
.site-footer__logo span { color: var(--accent); }
.site-footer__powered {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  margin-bottom: 0;
}
.site-footer__links {
  display: flex;
  gap: 1.5rem;
}
.site-footer__link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
}
.site-footer__link:hover { color: var(--text-primary); }
.site-footer__bottom {
  padding-top: 1.5rem;
}
.site-footer__bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

/* Editorial / long-form */
.editorial { max-width: 720px; margin: 0 auto; }
.editorial h2 { margin-bottom: 1rem; }
.editorial p { margin-bottom: 1.25rem; }

/* Testimonials */
.quote-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  background: var(--bg-page);
}
.quote-card blockquote {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.quote-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.quote-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
}
.quote-card__name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}
.quote-card__title {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Security items */
.security-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.security-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.security-item__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 8px;
  color: var(--accent);
}
.security-item h4 { margin-bottom: 0.25rem; }
.security-item p { margin-bottom: 0; font-size: 0.875rem; }

/* Interactive Demo */
.upload-cta { padding: 5rem 0; text-align: center; }
.upload-cta h2 { margin-bottom: 0.75rem; }
.upload-cta p { max-width: 600px; margin: 0 auto 2rem; }
#data-extractor-container { text-align: left; width: 100%; min-height: 400px; }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .page-hero { padding: 3rem 0 2.5rem; }
  .page-section { padding: 3rem 0; }
  .cta-block { padding: 3rem 0; }

  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .security-row { grid-template-columns: 1fr; }

  .site-nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .site-nav__links--open { display: flex; }
  .site-nav__toggle { display: block; }
  .site-nav .wrap { position: relative; }
  .site-nav__form { width: 100%; }
  .site-nav__input { flex: 1; width: auto; }

  .site-footer__inner { flex-direction: column; gap: 1.5rem; }
  .site-footer__links { flex-wrap: wrap; gap: 1rem; }

  .trust-row { flex-direction: column; align-items: center; gap: 0.5rem; }
}


.last-updated { font-size: 0.875rem; color: var(--gray-500, #6b7280); margin-bottom: 1.5rem; }