/* Theme C — Trust/Authority shared styles */
/* Per-domain CSS only needs to override :root color variables */

*, *::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 */
.page-hero { padding: 5rem 0 4rem; text-align: center; position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.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; }

/* Hero illustration — source document (::after) + extracted output card (::before) */
/* Activated by per-domain CSS: .page-hero::after, .page-hero::before { display: block; } */
.page-hero::after {
  content: "";
  display: none;
  position: absolute;
  right: 10%;
  top: 46%;
  transform: translateY(-50%);
  width: 250px;
  height: 300px;
  pointer-events: none;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background-color: var(--bg-page);
  box-shadow: 12px 12px 0 -1px var(--bg-section), 12px 12px 0 1px var(--border);
  background-image:
    /* Accent header bar */
    linear-gradient(var(--accent), var(--accent)),
    /* Text lines (unstructured doc content) */
    linear-gradient(var(--border), var(--border)),
    linear-gradient(var(--border), var(--border)),
    linear-gradient(var(--border), var(--border)),
    linear-gradient(var(--border), var(--border)),
    linear-gradient(var(--border), var(--border)),
    linear-gradient(var(--border), var(--border)),
    linear-gradient(var(--border), var(--border)),
    linear-gradient(var(--border), var(--border)),
    linear-gradient(var(--border), var(--border)),
    linear-gradient(var(--border), var(--border));
  background-size:
    90px 4px,     /* accent bar */
    170px 2.5px,  /* line 1 */
    130px 2.5px,  /* line 2 */
    155px 2.5px,  /* line 3 */
    100px 2.5px,  /* line 4 */
    160px 2.5px,  /* line 5 */
    140px 2.5px,  /* line 6 */
    120px 2.5px,  /* line 7 */
    155px 2.5px,  /* line 8 */
    90px 2.5px,   /* line 9 */
    145px 2.5px;  /* line 10 */
  background-position:
    26px 26px,    /* accent bar */
    26px 52px,    /* line 1 */
    26px 68px,    /* line 2 */
    26px 84px,    /* line 3 */
    26px 100px,   /* line 4 */
    26px 124px,   /* line 5 */
    26px 140px,   /* line 6 */
    26px 156px,   /* line 7 */
    26px 172px,   /* line 8 */
    26px 196px,   /* line 9 */
    26px 212px;   /* line 10 */
  background-repeat: no-repeat;
  opacity: 0.9;
}
/* Extracted output card — overlaps bottom-right of source document */
.page-hero::before {
  content: "";
  display: none;
  position: absolute;
  right: calc(10% - 20px);
  top: calc(46% + 60px);
  width: 160px;
  height: 120px;
  pointer-events: none;
  z-index: 2;
  border-radius: 8px;
  border: 1.5px solid var(--accent);
  background-color: var(--bg-page);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  background-image:
    /* Column headers */
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent)),
    /* Grid rows */
    linear-gradient(var(--border), var(--border)),
    linear-gradient(var(--border), var(--border)),
    linear-gradient(var(--border), var(--border)),
    /* Grid columns */
    linear-gradient(var(--border), var(--border)),
    linear-gradient(var(--border), var(--border)),
    /* Data cells — accent highlighted */
    linear-gradient(var(--accent-light), var(--accent-light)),
    linear-gradient(var(--accent-light), var(--accent-light)),
    linear-gradient(var(--accent-light), var(--accent-light));
  background-size:
    36px 3px,    /* header 1 */
    36px 3px,    /* header 2 */
    36px 3px,    /* header 3 */
    130px 1px,   /* row 1 */
    130px 1px,   /* row 2 */
    130px 1px,   /* row 3 */
    1px 72px,    /* col 1 */
    1px 72px,    /* col 2 */
    40px 20px,   /* cell 1 */
    40px 20px,   /* cell 2 */
    40px 20px;   /* cell 3 */
  background-position:
    16px 14px,    /* header 1 */
    60px 14px,    /* header 2 */
    104px 14px,   /* header 3 */
    16px 28px,    /* row 1 */
    16px 52px,    /* row 2 */
    16px 76px,    /* row 3 */
    52px 28px,    /* col 1 */
    96px 28px,    /* col 2 */
    18px 30px,    /* cell 1 */
    62px 54px,    /* cell 2 */
    106px 78px;   /* cell 3 */
  background-repeat: no-repeat;
  opacity: 0.95;
}
@media (max-width: 1024px) {
  .page-hero::after,
  .page-hero::before { display: none !important; }
}

/* 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 */
.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 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 */
.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 */
.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__powered a { color: var(--text-muted); }
.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 */
.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; }
}

/* Testimonial variant: featured single quote */
.quote-card--featured {
  border: 2px solid var(--accent);
  background: var(--accent-light);
  padding: 2.5rem;
  text-align: center;
}
.quote-card--featured blockquote {
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-primary);
}
.quote-card--featured .quote-card__author { justify-content: center; }

/* Content card icon shape variants */
.content-card__icon--round { border-radius: 50%; }
.content-card__icon--square { border-radius: 4px; }
