/* PDFDataExtractor — Brick accent */
:root {
  --accent: #bc4749;
  --accent-light: rgba(188, 71, 73, 0.08);
  --accent-dark: #9a3a3c;
  --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; }

/* ---- SPLIT HERO + ANIMATED DEMO (homepage) ---- */
.page-hero--split { padding: 3rem 0 2.75rem; text-align: left; background: linear-gradient(180deg, rgba(188,71,73,0.07) 0%, #fff 75%); }
.page-hero--split::before, .page-hero--split::after { display: none !important; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.page-hero--split h1 { font-size: 2.5rem; }
.page-hero--split .subtitle { margin: 1rem 0 1.25rem; }
.page-hero--split .stacked-form { margin: 0; }
.page-hero--split .trust-row { justify-content: flex-start; }

/* ---- HERO DEMO (animated document -> spreadsheet) ---- */
.hero-split__demo { container-type: inline-size; }
.itx-demo { position: relative; width: 100%; font-size: 12px; font-size: clamp(8px, 2.6cqw, 14px); line-height: 1.4; }
.itx-demo::before { content: ''; position: absolute; inset: -8% -4%; background: radial-gradient(55% 55% at 60% 40%, rgba(188,71,73,0.16), rgba(188,71,73,0)); pointer-events: none; }
.itx-window { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 0.9em; box-shadow: 0 1.6em 3.4em -1.4em rgba(15,23,42,0.3); overflow: hidden; }
.itx-chrome { display: flex; align-items: center; gap: 0.45em; padding: 0.7em 1em; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.itx-dot { width: 0.62em; height: 0.62em; border-radius: 50%; }
.itx-dot--r { background: #fca5a5; }
.itx-dot--y { background: #fcd34d; }
.itx-dot--g { background: #86efac; }
.itx-chrome-title { margin-left: 0.5em; font-size: 0.72em; font-weight: 600; color: #64748b; }
.itx-stage { display: flex; gap: 0.7em; padding: 1em; align-items: stretch; }

/* source document */
.itx-doc { position: relative; overflow: hidden; flex: 0 0 13.5em; background: #fff; border: 1px solid #e2e8f0; border-radius: 0.55em; box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06); padding: 0.9em; display: flex; flex-direction: column; gap: 0.7em; }
.itx-doc-label { display: block; font-size: 0.6em; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #94a3b8; }
.itx-doc-vendor { display: block; margin-top: 0.15em; font-size: 0.85em; font-weight: 700; color: #0f172a; }
.itx-doc-meta { display: flex; justify-content: space-between; gap: 0.5em; font-size: 0.62em; color: #64748b; }
.itx-doc-meta b { color: #1e293b; font-weight: 600; }
.itx-doc-bill { display: flex; flex-direction: column; gap: 0.35em; }
.itx-doc-bill i, .itx-line i { display: block; height: 0.5em; border-radius: 0.3em; background: #e2e8f0; }
.itx-doc-items { display: flex; flex-direction: column; gap: 0.45em; border-top: 1px solid #f1f5f9; padding-top: 0.65em; }
.itx-line { display: flex; justify-content: space-between; align-items: center; }
.itx-doc-total { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #e2e8f0; padding-top: 0.6em; font-size: 0.68em; color: #64748b; }
.itx-doc-total b { font-size: 1.1em; color: #0f172a; }

/* field highlights on the document */
.itx-hl { position: relative; white-space: nowrap; }
.itx-hl::after { content: ''; position: absolute; inset: -0.18em -0.3em; background: rgba(188,71,73,0.13); border: 1px solid rgba(188,71,73,0.45); border-radius: 0.3em; opacity: 0; pointer-events: none; }

/* scanline */
.itx-scan { position: absolute; left: 0.5em; right: 0.5em; top: 0.4em; height: 1.6em; border-radius: 0.3em; background: linear-gradient(180deg, rgba(188,71,73,0) 0%, rgba(188,71,73,0.15) 70%, rgba(188,71,73,0.26) 100%); border-bottom: 2px solid rgba(188,71,73,0.55); opacity: 0; pointer-events: none; animation: itxScan 10s linear infinite; }

/* arrow */
.itx-arrow { align-self: center; flex: 0 0 auto; width: 2.2em; height: 2.2em; border-radius: 50%; background: #fff; border: 1px solid rgba(188,71,73,0.5); color: var(--accent); display: flex; align-items: center; justify-content: center; animation: itxPulse 2.5s ease-in-out infinite; }
.itx-arrow svg { width: 1em; height: 1em; }

/* spreadsheet */
.itx-sheet { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f0; border-radius: 0.55em; box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06); overflow: hidden; }
.itx-sheet-bar { display: flex; align-items: center; gap: 0.5em; padding: 0.55em 0.8em; font-size: 0.68em; font-weight: 600; color: #475569; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.itx-xlsx { width: 1.5em; height: 1.5em; border-radius: 0.25em; background: #217346; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.9em; font-weight: 800; }
.itx-grid { flex: 1; font-variant-numeric: tabular-nums; }
.itx-r { display: grid; grid-template-columns: 1.4fr 0.95fr 0.75fr 1fr; border-bottom: 1px solid #eef1f6; }
.itx-r > span { padding: 0.5em 0.55em; font-size: 0.66em; color: #334155; white-space: nowrap; overflow: hidden; min-width: 0; border-left: 1px solid #eef1f6; }
.itx-r > span:first-child { border-left: none; }
.itx-cols > span { padding: 0.2em 0.55em; font-size: 0.56em; text-align: center; color: #94a3b8; background: #f8fafc; }
.itx-head > span { font-size: 0.62em; font-weight: 700; color: #fff; background: var(--accent); border-left-color: rgba(255,255,255,0.25); text-transform: uppercase; letter-spacing: 0.04em; }
.itx-num { text-align: right; }
.itx-r--empty > span { height: 1.75em; padding: 0; }

/* floating badge */
.itx-badge { position: absolute; right: -0.5em; bottom: -0.9em; display: flex; align-items: center; gap: 0.5em; background: #fff; border: 1px solid #e2e8f0; border-radius: 2em; padding: 0.5em 0.95em; font-size: 0.78em; font-weight: 600; color: #1e293b; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.itx-check { width: 1.4em; height: 1.4em; border-radius: 50%; background: #059669; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.85em; }

/* timeline: one shared 10s loop */
.itx-pop { opacity: 0; }
.itx-hl.itx-t1::after, .itx-pop.itx-t1 { animation: itxT1 10s linear infinite; }
.itx-hl.itx-t2::after, .itx-pop.itx-t2 { animation: itxT2 10s linear infinite; }
.itx-hl.itx-t3::after, .itx-pop.itx-t3 { animation: itxT3 10s linear infinite; }
.itx-hl.itx-t4::after, .itx-pop.itx-t4 { animation: itxT4 10s linear infinite; }
.itx-pop.itx-t5 { animation: itxT5 10s linear infinite; }
.itx-pop.itx-t6 { animation: itxT6 10s linear infinite; }
.itx-pop.itx-t7 { animation: itxT7 10s linear infinite; }
@keyframes itxT1 { 0%, 8% { opacity: 0; transform: translateY(0.25em); } 10.5%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes itxT2 { 0%, 14% { opacity: 0; transform: translateY(0.25em); } 16.5%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes itxT3 { 0%, 20% { opacity: 0; transform: translateY(0.25em); } 22.5%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes itxT4 { 0%, 27% { opacity: 0; transform: translateY(0.25em); } 29.5%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes itxT5 { 0%, 40% { opacity: 0; transform: translateY(0.25em); } 43%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes itxT6 { 0%, 50% { opacity: 0; transform: translateY(0.25em); } 53%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes itxT7 { 0%, 62% { opacity: 0; transform: translateY(0.4em) scale(0.92); } 65%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes itxScan { 0% { opacity: 0; transform: translateY(0); } 3% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; transform: translateY(11.5em); } 100% { opacity: 0; transform: translateY(11.5em); } }
@keyframes itxPulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(188,71,73,0.3); } 50% { transform: scale(1.06); box-shadow: 0 0 0 0.55em rgba(188,71,73,0); } }

@media (prefers-reduced-motion: reduce) {
  .itx-scan { display: none; }
  .itx-arrow { animation: none; }
  .itx-pop { opacity: 1; animation: none !important; }
  .itx-hl::after { opacity: 1; animation: none !important; }
}

@media (max-width: 900px) {
  .page-hero--split { text-align: center; }
  .page-hero--split h1 { font-size: 2rem; }
  .hero-split { grid-template-columns: 1fr; gap: 2rem; }
  .hero-split__demo { order: -1; width: 100%; max-width: 480px; margin: 0 auto; }
  .page-hero--split .stacked-form { margin: 0 auto; }
  .page-hero--split .trust-row { justify-content: center; }
}
