/* ── ZUGFeRD-easy Validator ── Light Theme ── CI-ready */

:root {
  --primary:       #0055cc;
  --primary-dark:  #0044aa;
  --primary-light: #e8f0fe;
  --success:       #1a7f4b;
  --success-bg:    #e6f7ed;
  --error:         #c0392b;
  --error-bg:      #fdecea;
  --warn:          #b45309;
  --warn-bg:       #fef3c7;
  --text:          #1a1a2e;
  --text-muted:    #6b7280;
  --border:        #e5e7eb;
  --bg:            #f9fafb;
  --white:         #ffffff;
  --radius:        10px;
  --shadow:        0 2px 12px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.6;
}

/* ── Header ── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.logo-z { color: var(--primary); }
.logo-easy { color: var(--primary); }
.logo-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── Main ── */
.main { flex: 1; padding: 40px 24px 60px; }

/* ── Footer ── */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.footer a { color: var(--primary); text-decoration: none; }
.footer-notice { margin-top: 6px; font-size: 11px; opacity: 0.7; }

/* ── Login ── */
.login-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}
.login-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}
.login-logo {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}
.login-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 28px;
}
.login-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text); }
.field input {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-full { width: 100%; }
.btn-ghost {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-muted) !important;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary) !important; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff !important;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-cta:hover { background: var(--primary-dark); }

/* ── Alert ── */
.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}
.alert-error { background: var(--error-bg); color: var(--error); }

/* ── Page ── */
.page-wrap { max-width: 720px; margin: 0 auto; }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.page-header p { color: var(--text-muted); font-size: 15px; }

/* ── Validator Card ── */
.validator-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Drop Zone ── */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}
.drop-zone.has-file { border-color: var(--primary); border-style: solid; }
.drop-icon { font-size: 36px; line-height: 1; }
.drop-text strong { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.drop-text span { font-size: 13px; color: var(--text-muted); }
.drop-file { font-size: 13px; font-weight: 600; color: var(--primary); margin-top: 4px; }

.btn-validate { align-self: flex-start; }
.hero-privacy {
  font-size: 0.80rem;
  color: #555;
  margin-top: 10px;
  margin-bottom: 0;
}
.privacy-notice {
  font-size: 0.82rem;
  color: #555;
  background: #f0f7f0;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.5;
}

.de-server-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 16px;
  background: #1a1a2e;
  color: #fff;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── Ergebnis ── */
.result-wrap { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.result-card {
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid transparent;
}
.result-ok  { background: var(--success-bg); border-color: #a7d7b8; }
.result-error { background: var(--error-bg); border-color: #f5c2be; }
.result-warn { background: var(--warn-bg); border-color: #fcd38c; }
.result-icon { font-size: 28px; line-height: 1; flex-shrink: 0; }
.result-body h2 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.result-meta { font-size: 13px; color: var(--text-muted); }
.result-note { font-size: 13px; color: var(--warn); font-weight: 500; margin-top: 4px; }
.result-ok h2 { color: var(--success); }
.result-error h2 { color: var(--error); }
.result-warn h2 { color: var(--warn); }

.issues-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.issues-section { padding: 16px 20px; }
.issues-section + .issues-section { border-top: 1px solid var(--border); }
.issues-title { font-size: 13px; font-weight: 700; text-transform: uppercase;
                letter-spacing: 0.5px; margin-bottom: 10px; }
.issues-title-error { color: var(--error); }
.issues-title-warn  { color: var(--warn); }
.issues-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.issues-list li {
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--bg);
}
.issue-code {
  font-weight: 700;
  font-size: 11px;
  font-family: monospace;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}
.result-actions { display: flex; justify-content: flex-start; }

/* ── CTA ── */
.cta-card {
  background: var(--primary-light);
  border: 1px solid #c5d8ff;
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.cta-body p { font-size: 13px; color: var(--text-muted); }

/* ── Verstecken ── */
[hidden], .d-none { display: none !important; }

/* ── Header Nav ── */
.header-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-link-cta { color: var(--primary) !important; font-weight: 600; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 60%);
  border-bottom: 1px solid var(--border);
  padding: 72px 24px 64px;
  text-align: center;
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffd97d;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  color: var(--text);
}
.hero-accent { color: var(--primary); }
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.btn-hero { padding: 13px 28px; font-size: 16px; }
.hero-trust {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.hero-trust span { display: flex; align-items: center; gap: 4px; }

/* ── Urgency Bar ── */
.urgency-bar {
  background: #fff8e1;
  border-bottom: 1px solid #ffd97d;
  padding: 12px 24px;
}
.urgency-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  flex-wrap: wrap;
}
.urgency-icon { font-size: 18px; flex-shrink: 0; }
.urgency-inner span { flex: 1; }
.urgency-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Sections ── */
.section { padding: 64px 24px; }
.section-bg { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner { max-width: 900px; margin: 0 auto; }
.section-inner-narrow { max-width: 600px; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.section-header p { color: var(--text-muted); font-size: 16px; }

/* ── Label Chip ── */
.label-chip {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

/* ── Feature Split ── */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature-text h2 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.feature-text p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* ── Feature Mockup ── */
.feature-mockup { display: flex; justify-content: center; }
.mockup-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mockup-drop {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  background: var(--bg);
}
.mockup-icon { font-size: 28px; margin-bottom: 6px; }
.mockup-text { font-size: 13px; font-weight: 600; color: var(--text); }
.mockup-size { font-size: 11px; color: var(--text-muted); }
.mockup-result {
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.mockup-ok { background: var(--success-bg); }
.mockup-result-icon { font-size: 20px; flex-shrink: 0; }
.mockup-result strong { display: block; font-weight: 700; color: var(--success); }
.mockup-meta { font-size: 11px; color: var(--text-muted); }

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.15s;
}
.feature-card:hover { box-shadow: var(--shadow); }
.feature-card-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 580px;
  margin: 0 auto 16px;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.pricing-card-highlight {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-name { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px; }
.pricing-price { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.pricing-price span { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 24px;
  color: var(--text);
}
.pricing-badge-row { text-align: center; margin-bottom: 20px; }
.pricing-once {
  display: inline-block;
  background: #e6f7ed;
  color: var(--success);
  border: 1px solid #a7d7b8;
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 14px;
  font-weight: 700;
}
.pricing-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Früh-Zugang Form ── */
.early-form { display: flex; flex-direction: column; gap: 12px; }
.early-form-row { display: flex; gap: 10px; }
.early-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
}
.early-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.early-note { font-size: 12px; color: var(--text-muted); text-align: center; }
.alert-success { background: var(--success-bg); color: var(--success); }

/* ── CTA Center ── */
.cta-center-card {
  background: var(--primary-light);
  border: 1px solid #c5d8ff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.cta-center-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.cta-center-card p { color: var(--text-muted); margin-bottom: 24px; }

/* ── Stats ── */
.stats-wrap { max-width: 900px; margin: 0 auto; padding: 40px 24px 60px; }
.stats-wrap h1 { font-size: 26px; font-weight: 800; margin-bottom: 28px; }
.stats-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 32px; }
.stats-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stats-card-label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; letter-spacing: 0.5px; }
.stats-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--bg); }
.stats-row.stats-ok strong { color: var(--success); }
.stats-row.stats-err strong { color: var(--error); }
.stats-table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stats-table th { background: var(--bg); padding: 10px 14px; text-align: left; font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--border); }
.stats-table td { padding: 9px 14px; border-bottom: 1px solid var(--bg); }
.stats-table tr:last-child td { border-bottom: none; }
.stats-table td.ok { color: var(--success); font-weight: 600; }
.stats-table td.err { color: var(--error); font-weight: 600; }

/* ── Legal Pages ── */
.legal-wrap { max-width: 720px; margin: 0 auto; padding: 40px 24px 60px; }
.legal-wrap h1 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.legal-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 32px; }
.legal-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.legal-section p { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 8px; }
.legal-section a { text-decoration: none; color: var(--primary); }
.legal-section a:hover { text-decoration: underline; }
.legal-section ul { font-size: 14px; line-height: 1.8; padding-left: 20px; color: var(--text); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-h1 { font-size: 28px; }
  .feature-split { grid-template-columns: 1fr; gap: 32px; }
  .feature-mockup { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .header-nav .nav-link:not(.nav-link-cta) { display: none; }
}
@media (max-width: 768px) {
  .urgency-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .urgency-link { align-self: flex-end; }
}
/* ── Sample Preview Cards ───────────────────────────────────────────────── */
.sample-section { background: var(--bg); }
.sample-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}
.sample-cards .sample-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  background: var(--white);
}
.sample-label {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  letter-spacing: 0.02em;
}
.sample-label-ok  { background: #e8f5e9; color: #2e7d32; }
.sample-label-err { background: #fdecea; color: #c62828; }
.sample-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1.414; /* A4 */
  overflow: hidden;
  background: #f5f5f5;
}
.sample-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.sample-zoom {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111;
  color: #e00;
  border: 2px solid #e00;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.15s;
  padding: 0;
}
.sample-zoom:hover { transform: scale(1.15); }
.zoom-hint {
  display: inline-block;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #111;
  color: #e00;
  border: 1.5px solid #e00;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 20px;
  vertical-align: middle;
}
.sample-try { margin: 32px 0 8px; }
.sample-try-label { font-size: 0.85rem; color: #666; margin-bottom: 12px; text-align: center; }
.sample-cards-sm { max-width: 560px; margin: 0 auto; gap: 16px; }
.sample-clickable { cursor: pointer; transition: box-shadow 0.15s, transform 0.15s; }
.sample-clickable:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* Lightbox */
.zoom-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.zoom-modal.open { display: flex; }
.zoom-modal-inner {
  background: var(--white);
  border-radius: 12px;
  max-width: 1200px;
  width: 95vw;
  max-height: 95vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.zoom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid #eee;
}
.zoom-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #555;
  padding: 4px 8px;
}
.zoom-close:hover { color: #000; }
.zoom-modal-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

@media (max-width: 600px) {
  #interesse-box { left: 50% !important; transform: translateX(-50%) !important; width: calc(100vw - 32px) !important; }

  .main { padding: 0; }
  .hero { padding: 40px 16px; }
  .section { padding: 40px 16px; }
  .hero-h1 { font-size: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .early-form-row { flex-direction: column; }
  .page-wrap { padding: 24px 16px; }
  .page-header h1 { font-size: 21px; }
  .validator-card { padding: 20px 16px; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .btn-validate { width: 100%; }
  .cta-center-card { padding: 28px 20px; }
}

/* ── Sample PDFs Section ── */
.samples-section {
  margin: 32px 0;
}
.samples-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 20px;
}
.samples-grid {
  display: flex;
  gap: 16px;
  max-width: 636px;
  margin: 0 auto;
}
.sample-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.sample-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.sample-cta {
  text-align: center;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a2e;
}
.sample-card {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 0;
  box-sizing: border-box;
  position: relative;
}
.sample-preview {
  border-radius: 6px;
  border: 3px solid;
  background: transparent;
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 1 / 1.414;
}
.sample-card:has(.sample-badge-ok) .sample-preview {
  border-color: #16a34a;
}
.sample-card:has(.sample-badge-error) .sample-preview {
  border-color: #dc2626;
}
.sample-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.2s;
}
.sample-img:hover {
  opacity: 0.9;
}
.sample-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px 18px;
  border-radius: 0 3px 0 8px;
  font-size: 13px;
  font-weight: 700;
  z-index: 1;
}
.sample-badge-ok {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}
.sample-badge-error {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}
.btn-sample {
  width: calc(100% - 24px);
  margin: 14px 12px 12px 12px;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  text-align: center;
  line-height: 1.2;
}
.btn-sample-ok {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}
.btn-sample-ok:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34,197,94,0.35);
}
.btn-sample-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.btn-sample-error:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239,68,68,0.35);
}
@media (max-width: 700px) {
  .samples-grid {
    flex-direction: column;
    max-width: 400px;
  }
}

@media (max-width: 600px) {
  #interesse-box { left: 50% !important; transform: translateX(-50%) !important; width: calc(100vw - 32px) !important; }
  .main { padding: 0; }
  .hero { padding: 40px 16px; }
  .section { padding: 40px 16px; }
  .hero-h1 { font-size: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .early-form-row { flex-direction: column; }
  .page-wrap { padding: 24px 16px; }
  .page-header h1 { font-size: 21px; }
  .validator-card { padding: 20px 16px; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .btn-validate { width: 100%; }
  .cta-center-card { padding: 28px 20px; }
}
