/* ==========================================================================
   FactuurVooraf Design System - Clean 0-Byte JavaScript CSS3
   ========================================================================== */

:root {
  /* Color Palette - Business Professional */
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-light: #64748b;
  
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  
  /* Status Colors */
  --status-green-bg: #ecfdf5;
  --status-green-border: #a7f3d0;
  --status-green-text: #065f46;
  
  --status-orange-bg: #fffbeb;
  --status-orange-border: #fde68a;
  --status-orange-text: #92400e;
  
  --status-red-bg: #fef2f2;
  --status-red-border: #fecaca;
  --status-red-text: #991b1b;
  
  /* Radius & Layout */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07);
  
  --container-max-width: 860px;
}

/* Resets & Overflow Protection */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* Header Component */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.header-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-logo:hover {
  text-decoration: none;
}

.brand-logo-img {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background-color: var(--bg-subtle);
  text-decoration: none;
}

/* Main Container */
.main-content {
  flex: 1;
  max-width: var(--container-max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 2.25rem;
}

.hero-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  word-break: break-word;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}

.trust-line {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  background-color: var(--bg-subtle);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  max-width: 100%;
}

/* Card Container with Generous Spacing */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}

/* Upload Form */
.upload-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-label .optional {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--text-light);
  background-color: var(--bg-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.input-text {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  color: var(--text-main);
}

.input-text:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Styled File Upload Card */
.file-upload-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 1.5rem;
  background-color: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
  text-align: center;
  max-width: 100%;
}

.file-upload-card:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.upload-icon-circle {
  width: 52px;
  height: 52px;
  background-color: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.upload-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.upload-subtext {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 0.75rem;
}

.upload-privacy-note {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 520px;
  line-height: 1.45;
}

.file-input-prominent {
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 1rem auto 0.75rem auto;
  padding: 0.6rem 0.85rem;
  background-color: #ffffff;
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.12);
  cursor: pointer;
  text-align: left;
}

.file-input-prominent::file-selector-button,
.file-input-prominent::-webkit-file-upload-button {
  background-color: var(--accent);
  color: #ffffff;
  padding: 0.65rem 1.35rem;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  margin-right: 0.75rem;
  transition: background-color 0.15s;
}

.file-input-prominent::file-selector-button:hover,
.file-input-prominent::-webkit-file-upload-button:hover {
  background-color: var(--accent-hover);
}

/* Primary Action Button */
.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.15s;
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--border-color);
  text-decoration: none;
}

/* Three Info Cards Grid */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-card {
  margin-bottom: 0;
  padding: 1.5rem;
}

.info-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.info-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Checklist Section */
.checklist-card {
  margin-bottom: 2rem;
  padding: 2rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.check-icon {
  width: 24px;
  height: 24px;
  background-color: var(--status-green-bg);
  color: var(--status-green-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Disclaimer Box */
.disclaimer-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* 2-Column Privacy Grid with Extra Breathing Room */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.privacy-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.privacy-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.privacy-card-icon {
  font-size: 1.85rem;
  line-height: 1;
  flex-shrink: 0;
}

.privacy-card-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.privacy-card-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* AVG Structured Blocks */
.avg-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.avg-block {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.avg-num {
  width: 34px;
  height: 34px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.avg-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.avg-text p {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.55;
}

.avg-text ul {
  margin-left: 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.65;
}

/* Landing Page Guide Components */
.landing-cta-card {
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  border: 1px solid #bfdbfe;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 2rem;
}

.landing-cta-content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.landing-cta-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.landing-cta-btn .btn-primary {
  width: auto;
  white-space: nowrap;
  padding: 0.8rem 1.6rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.guide-card {
  margin-bottom: 0;
  padding: 1.75rem;
}

.guide-card.warning-border {
  border-left: 4px solid #f59e0b;
}

.guide-card.info-border {
  border-left: 4px solid var(--accent);
}

.guide-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.guide-icon {
  font-size: 1.5rem;
}

.guide-card-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.guide-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Checks Grid */
.checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.check-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.check-box-icon {
  width: 26px;
  height: 26px;
  background-color: var(--status-green-bg);
  color: var(--status-green-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ==========================================================================
   CSP Compliant Helper Classes (Replacing Inline Styles)
   ========================================================================== */
.required-star { color: #ef4444; }
.form-inline { display: inline; }
.result-action-wrapper { margin-top: 1.5rem; }
.findings-heading { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.finding-severity-label { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; }
.invoice-data-card { margin-top: 2rem; }
.data-table-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--primary); }
.feedback-success-badge { color: #065f46; font-weight: 700; padding: 0.5rem; background: #d1fae5; border-radius: var(--radius-sm); }
.disclaimer-result-spacing { margin-top: 2rem; }
.status-red-error { border-left: 6px solid #dc2626; }
.error-summary-spacing { margin-bottom: 1.5rem; }
.btn-auto-width { display: inline-flex; width: auto; }
.hero-section-left { text-align: left; margin-bottom: 2rem; }
.hero-title-lg { font-size: 2rem; }
.hero-subtitle-full { margin: 0; max-width: 100%; }
.privacy-intro-card { margin-bottom: 2rem; background: linear-gradient(to right, #eff6ff, #ffffff); border-left: 4px solid var(--accent); }
.privacy-intro-heading { font-size: 1.25rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }
.privacy-intro-subtext { font-size: 0.95rem; color: var(--text-muted); }
.privacy-avg-card { margin-top: 2rem; }
.section-title-bordered { border-bottom: 2px solid var(--border-color); padding-bottom: 0.75rem; margin-bottom: 1.5rem; }
.card-mt-md { margin-top: 1.5rem; }
.section-title-mb { margin-bottom: 1.25rem; }
.guide-grid-mt { margin-top: 1.5rem; }
.landing-bottom-card { margin-top: 2rem; text-align: center; padding: 2.5rem 1.5rem; background: var(--bg-subtle); }
.bottom-card-heading { font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-bottom: 0.75rem; }
.bottom-card-subtext { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.btn-large-auto { display: inline-flex; width: auto; font-size: 1.05rem; padding: 0.85rem 2rem; }
.pricing-note-card { background-color: #f8fafc; border: 1px solid var(--border-color); border-left: 4px solid var(--accent); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.pricing-note-text { font-size: 0.925rem; line-height: 1.6; color: var(--text-main); margin: 0; }
.pricing-note-text strong { color: var(--primary); }


/* Result Dashboard */
.result-header-card {
  border-left-width: 5px;
}

.status-green {
  background-color: var(--status-green-bg);
  border-color: var(--status-green-border);
  color: var(--status-green-text);
}

.status-orange {
  background-color: var(--status-orange-bg);
  border-color: var(--status-orange-border);
  color: var(--status-orange-text);
}

.status-red {
  background-color: var(--status-red-bg);
  border-color: var(--status-red-border);
  color: var(--status-red-text);
}

.status-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.status-badge.green { background-color: #d1fae5; color: #065f46; }
.status-badge.orange { background-color: #fef3c7; color: #92400e; }
.status-badge.red { background-color: #fee2e2; color: #991b1b; }

.result-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.result-summary {
  font-size: 1rem;
  line-height: 1.5;
}

/* Findings List */
.findings-section {
  margin-top: 2rem;
}

.finding-card {
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
}

.finding-card.severity-error {
  border-left: 4px solid #ef4444;
  background-color: #fef2f2;
}

.finding-card.severity-warning {
  border-left: 4px solid #f59e0b;
  background-color: #fffbeb;
}

.finding-card.severity-info {
  border-left: 4px solid #3b82f6;
  background-color: #eff6ff;
}

.finding-card.severity-success {
  border-left: 4px solid #10b981;
  background-color: #ecfdf5;
}

.finding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.finding-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  background-color: rgba(0,0,0,0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.finding-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.finding-message {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.diff-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin: 0.75rem 0;
  font-size: 0.85rem;
}

.diff-col {
  display: flex;
  flex-direction: column;
}

.diff-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.diff-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  word-break: break-all;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.diff-value.invoice-val { background-color: #fee2e2; color: #991b1b; }
.diff-value.user-val { background-color: #e0f2fe; color: #075985; }

.remediation-box {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  border-left: 3px solid var(--accent);
}

/* Data Table */
.data-table-wrapper {
  overflow-x: auto;
  margin-top: 0.85rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background-color: var(--bg-subtle);
  font-weight: 700;
  color: var(--primary);
}

/* Feedback Widget */
.feedback-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-top: 2.25rem;
}

.feedback-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--primary);
}

.feedback-form-group {
  display: inline-flex;
  gap: 0.85rem;
}

.btn-feedback {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-feedback:hover {
  background-color: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

/* Footer Component */
.site-footer {
  background-color: var(--primary);
  color: #94a3b8;
  padding: 2.25rem 1.25rem;
  margin-top: auto;
  font-size: 0.875rem;
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid #334155;
  padding-bottom: 1.25rem;
}

.footer-brand {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
}

/* ==========================================================================
   Comprehensive Responsive Breakpoints (Mobile, Tablet, Laptop, Desktop)
   ========================================================================== */

/* Tablet & Mobile Breakpoint (<= 768px) */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }
  
  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 0.4rem;
  }
  
  .nav-links a {
    font-size: 0.875rem;
    padding: 0.35rem 0.6rem;
  }

  .main-content {
    padding: 1.75rem 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .landing-cta-card {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
  }

  .landing-cta-btn .btn-primary {
    width: 100%;
  }

  .diff-box {
    grid-template-columns: 1fr;
  }

  .footer-top, .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Small Mobile Breakpoint (<= 480px) e.g., 320px, 375px, 440px iPhone 16 Pro Max */
@media (max-width: 480px) {
  .form-label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .form-label .optional {
    white-space: nowrap;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  .file-upload-card {
    padding: 1.75rem 1rem;
  }

  .privacy-grid, .guide-grid, .checks-grid {
    grid-template-columns: 1fr;
  }

  .avg-block {
    flex-direction: column;
    gap: 0.75rem;
  }
}
