/* ─── RegisterCQC — Main Stylesheet ───────────────────────────────── */
/* Palette: Deep forest green + warm white + slate — authoritative, trustworthy */

:root {
  --green-900: #0f2e1a;
  --green-800: #1a472a;
  --green-700: #246134;
  --green-600: #2d7a3a; /* primary */
  --green-500: #3a9147;
  --green-200: #b7dfbe;
  --green-100: #d8eedb;
  --green-50:  #f0f8f1;

  --slate-900: #1a1c1e;
  --slate-700: #2e3135;
  --slate-500: #5a5f66;
  --slate-400: #7d8288;
  --slate-200: #c8ccd0;
  --slate-100: #e4e6e8;
  --slate-50:  #f5f6f7;

  --amber-500: #e67e22;
  --amber-100: #fdebd0;
  --red-500:   #c0392b;
  --red-100:   #fadbd8;
  --blue-500:  #2471a3;
  --blue-100:  #d6eaf8;

  --white: #ffffff;
  --font-main: 'DM Sans', system-ui, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
}

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

html { font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--slate-900);
  background: var(--slate-50);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Navbar ─────────────────────────────────────────────────────── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--slate-100);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  color: var(--slate-900);
}
.logo-mark {
  width: 28px; height: 28px;
  background: var(--green-600);
  color: white;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.logo-text { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-link {
  font-size: 14px;
  color: var(--slate-500);
  text-decoration: none;
  font-weight: 400;
}
.nav-link:hover { color: var(--slate-900); text-decoration: none; }
.nav-link-muted { color: var(--slate-400); }
.nav-badge {
  font-size: 11px;
  background: var(--green-100);
  color: var(--green-800);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-main);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: var(--green-600);
  color: white;
  border-color: var(--green-700);
}
.btn-primary:hover {
  background: var(--green-700);
  text-decoration: none;
  color: white;
}
.btn-secondary {
  background: var(--white);
  color: var(--slate-700);
  border-color: var(--slate-200);
}
.btn-secondary:hover {
  background: var(--slate-50);
  text-decoration: none;
  color: var(--slate-900);
}
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ─── Forms ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-700);
  margin-bottom: 5px;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-main);
  color: var(--slate-900);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(45, 122, 58, 0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.inline-form { display: inline; }

/* ─── Alerts ─────────────────────────────────────────────────────── */
.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 1rem;
}
.alert-error { background: var(--red-100); color: var(--red-500); border: 1px solid #f5c6c3; }
.alert-info  { background: var(--blue-100); color: var(--blue-500); border: 1px solid #aed6f1; }

/* ─── Auth pages ─────────────────────────────────────────────────── */
.auth-page { background: var(--slate-50); }
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-box {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-md);
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}
.auth-box h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 0.25rem;
  color: var(--slate-900);
}
.auth-subtitle {
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 1.5rem;
}
.auth-switch {
  font-size: 13px;
  color: var(--slate-500);
  text-align: center;
  margin-top: 1.25rem;
}

/* ─── Page container ─────────────────────────────────────────────── */
.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--slate-900);
  letter-spacing: -0.5px;
}
.page-subtitle {
  font-size: 14px;
  color: var(--slate-500);
  margin-top: 3px;
}
.header-actions { display: flex; gap: 0.75rem; align-items: center; }
.breadcrumb {
  font-size: 13px;
  color: var(--slate-400);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--slate-500); }
.breadcrumb a:hover { color: var(--green-600); }

/* ─── Dashboard ──────────────────────────────────────────────────── */
.upgrade-banner {
  background: var(--amber-100);
  border: 1px solid #f0ca8b;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 1.5rem;
  color: var(--slate-700);
}
.upgrade-banner a { color: var(--amber-500); font-weight: 500; }

.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.org-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
}
.org-card:hover { box-shadow: var(--shadow-md); }
.org-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.org-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 3px;
}
.org-type {
  font-size: 12px;
  color: var(--slate-500);
}
.org-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.org-card-footer { border-top: 1px solid var(--slate-100); padding-top: 1rem; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border: 1px dashed var(--slate-200);
  border-radius: var(--radius-lg);
  color: var(--slate-500);
}
.empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-state h3 { color: var(--slate-700); margin-bottom: 0.5rem; }

/* ─── Badges ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.status-progress  { background: var(--blue-100);  color: var(--blue-500); }
.status-submitted { background: var(--amber-100); color: var(--amber-500); }
.status-approved  { background: var(--green-100); color: var(--green-700); }
.status-rejected  { background: var(--red-100);   color: var(--red-500); }
.badge-consultant { background: var(--green-100); color: var(--green-700); }
.badge-not_started { background: var(--slate-100); color: var(--slate-500); }
.badge-in_progress { background: var(--amber-100); color: var(--amber-500); }
.badge-completed   { background: var(--green-100); color: var(--green-700); }
.badge-blocked     { background: var(--red-100);   color: var(--red-500); }

/* ─── Progress bars ──────────────────────────────────────────────── */
.overall-progress { margin-bottom: 2rem; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 6px;
}
.progress-label strong { color: var(--slate-900); }
.progress-bar-outer {
  width: 100%;
  height: 8px;
  background: var(--slate-100);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-inner {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}
.progress-bar-inner.green  { background: var(--green-600); }
.progress-bar-inner.amber  { background: var(--amber-500); }
.progress-bar-inner.red    { background: var(--red-500); }
.mini-progress {
  height: 4px;
  background: var(--slate-100);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.mini-bar {
  height: 100%;
  background: var(--green-600);
  border-radius: 2px;
}

/* ─── Module grid ────────────────────────────────────────────────── */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.module-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--slate-900);
  transition: all 0.15s;
  box-shadow: var(--shadow);
}
.module-card:hover {
  border-color: var(--green-600);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transform: translateY(-1px);
}
.module-icon { font-size: 1.75rem; flex-shrink: 0; }
.module-body { flex: 1; min-width: 0; }
.module-body h3 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.module-body p  { font-size: 12px; color: var(--slate-500); }
.module-arrow   { color: var(--slate-300); font-size: 1rem; }

/* ─── Section card ───────────────────────────────────────────────── */
.section-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.section-card h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--slate-900);
}

/* ─── Notes ──────────────────────────────────────────────────────── */
.notes-list { margin-bottom: 1rem; }
.note-item {
  border-left: 3px solid var(--green-200);
  padding: 8px 12px;
  margin-bottom: 8px;
  background: var(--green-50);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.note-item p { font-size: 13px; color: var(--slate-700); }
.note-date, .note-meta {
  font-size: 11px;
  color: var(--slate-400);
  margin-top: 3px;
  display: block;
}
.note-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.note-form input {
  flex: 1;
  padding: 7px 10px;
  font-size: 13px;
}
.muted { color: var(--slate-400); font-size: 13px; }

/* ─── Checklist ──────────────────────────────────────────────────── */
.checklist-container { display: flex; flex-direction: column; gap: 1.5rem; }
.checklist-section {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.section-heading {
  padding: 12px 16px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-100);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  letter-spacing: 0.3px;
}
.checklist-items { padding: 0; }
.checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--slate-50);
  gap: 1rem;
  transition: background 0.1s;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item:hover { background: var(--slate-50); }
.status-row-pass  { border-left: 3px solid var(--green-600); }
.status-row-fail  { border-left: 3px solid var(--red-500); }
.status-row-pending { border-left: 3px solid var(--slate-200); }
.status-row-na  { border-left: 3px solid var(--slate-200); opacity: 0.6; }
.status-row-uploaded { border-left: 3px solid var(--blue-500); }
.status-row-verified { border-left: 3px solid var(--green-600); }

.item-main { flex: 1; min-width: 0; }
.item-text { font-size: 13px; color: var(--slate-800); line-height: 1.4; }
.item-desc { font-size: 12px; color: var(--slate-500); margin-top: 2px; }
.item-ref  { font-size: 11px; color: var(--slate-400); margin-top: 3px; display: block; }
.item-controls { flex-shrink: 0; }

.status-select {
  width: auto;
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
}
.status-select.status-pass    { border-color: var(--green-600); background: var(--green-50); color: var(--green-800); }
.status-select.status-fail    { border-color: var(--red-500);   background: var(--red-100);  color: var(--red-500); }
.status-select.status-uploaded { border-color: var(--blue-500); background: var(--blue-100); color: var(--blue-500); }
.status-select.status-verified { border-color: var(--green-600); background: var(--green-50); color: var(--green-800); }

/* ─── Application tracker ────────────────────────────────────────── */
.tracker-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tracker-stage {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.stage-number {
  width: 32px; height: 32px;
  background: var(--slate-100);
  color: var(--slate-600);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  flex-shrink: 0;
}
.tracker-stage.stage-completed .stage-number { background: var(--green-600); color: white; }
.tracker-stage.stage-in_progress .stage-number { background: var(--amber-500); color: white; }
.tracker-stage.stage-blocked .stage-number { background: var(--red-500); color: white; }

.stage-body { flex: 1; }
.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.stage-header h3 { font-size: 15px; font-weight: 600; }
.stage-desc { font-size: 13px; color: var(--slate-500); margin-bottom: 6px; }
.stage-date { font-size: 12px; color: var(--slate-400); }
.stage-date.completed { color: var(--green-700); }
.stage-notes { font-size: 12px; color: var(--slate-600); background: var(--slate-50); padding: 6px 10px; border-radius: 4px; margin-top: 6px; }
.stage-edit { margin-top: 10px; }
.stage-edit summary { font-size: 12px; color: var(--green-600); cursor: pointer; }
.stage-form { margin-top: 10px; padding: 10px; background: var(--slate-50); border-radius: var(--radius); }

/* ─── Timeline ───────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.two-col h2 { font-size: 16px; font-weight: 600; margin-bottom: 1rem; }
.timeline-track { display: flex; flex-direction: column; gap: 0; }
.timeline-stage {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}
.timeline-stage:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 7px; top: 32px;
  width: 2px; bottom: 0;
  background: var(--slate-100);
}
.tl-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}
.timeline-green .tl-dot  { background: var(--green-600); }
.timeline-amber .tl-dot  { background: var(--amber-500); }
.timeline-gray  .tl-dot  { background: var(--slate-200); }
.tl-content { flex: 1; }
.tl-content strong { font-size: 13px; display: block; }
.tl-status { font-size: 11px; color: var(--slate-400); text-transform: capitalize; }
.tl-date   { font-size: 11px; color: var(--slate-400); }

/* ─── Pricing ────────────────────────────────────────────────────── */
.pricing-hero {
  text-align: center;
  padding: 3rem 0 2rem;
}
.pricing-hero h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}
.pricing-hero p { color: var(--slate-500); font-size: 16px; max-width: 480px; margin: 0 auto 1rem; }
.pricing-section-title {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--slate-500);
  margin-bottom: 1rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.pricing-grid-single { grid-template-columns: minmax(280px, 400px); }
.pricing-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow);
}
.pricing-card-highlight {
  border: 2px solid var(--green-600);
}
.pricing-card-consultant {
  border: 1px solid var(--green-200);
  background: var(--green-50);
}
.pricing-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green-600);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-header { margin-bottom: 1.25rem; }
.pricing-header h3 { font-size: 16px; font-weight: 600; margin-bottom: 0.5rem; }
.pricing-price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--green-800);
  line-height: 1;
  margin-bottom: 3px;
}
.pricing-note { font-size: 12px; color: var(--slate-500); }
.pricing-features {
  list-style: none;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pricing-features li { font-size: 13px; color: var(--slate-700); display: flex; gap: 6px; }
.pricing-subtext { font-size: 12px; color: var(--slate-500); text-align: center; margin-top: 0.75rem; }
.pricing-faq { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--slate-100); }
.pricing-faq h2 { font-size: 18px; font-weight: 600; margin-bottom: 1.25rem; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.faq-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.faq-item p  { font-size: 13px; color: var(--slate-500); }

/* ─── Modal ──────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-md);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.modal-header h2 { font-size: 18px; font-weight: 600; }
.modal-close {
  background: none; border: none;
  font-size: 18px; cursor: pointer;
  color: var(--slate-400); padding: 4px;
}
.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

/* ─── Landing page ───────────────────────────────────────────────── */
.hero {
  background: var(--green-900);
  color: white;
  padding: 5rem 1.5rem;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.hero p {
  font-size: 18px;
  color: var(--green-200);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero {
  padding: 13px 28px;
  font-size: 16px;
}
.btn-white {
  background: white;
  color: var(--green-800);
  border-color: white;
}
.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); text-decoration: none; color: white; }
.features-section {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}
.features-section h2 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400;
  text-align: center; margin-bottom: 2.5rem;
  letter-spacing: -0.3px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.feature-card .fi { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 0.4rem; }
.feature-card p  { font-size: 13px; color: var(--slate-500); line-height: 1.5; }
.social-proof {
  background: var(--green-50);
  border-top: 1px solid var(--green-100);
  border-bottom: 1px solid var(--green-100);
  padding: 3rem 1.5rem;
  text-align: center;
}
.social-proof p {
  font-size: 22px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--green-800);
  max-width: 600px; margin: 0 auto 0.75rem;
}
.social-proof span { font-size: 13px; color: var(--slate-500); }
footer {
  background: var(--green-900);
  color: var(--green-200);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 13px;
}
footer a { color: var(--green-200); }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .page-header { flex-direction: column; }
  .two-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links .btn-sm { display: none; }
  .hero h1 { font-size: 32px; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ─── Legal pages ────────────────────────────────────────────────── */
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 400;
  margin-bottom: 0.25rem; letter-spacing: -0.5px;
}
.legal-meta { font-size: 13px; color: var(--slate-400); margin-bottom: 2rem; }
.legal-body { max-width: 720px; }
.legal-body h2 {
  font-size: 17px; font-weight: 600;
  margin: 2rem 0 0.5rem; color: var(--slate-900);
}
.legal-body p, .legal-body li {
  font-size: 14px; color: var(--slate-700);
  line-height: 1.75; margin-bottom: 0.75rem;
}
.legal-body ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-body strong { color: var(--slate-900); }
.cookie-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px; margin: 1rem 0;
}
.cookie-table th {
  background: var(--slate-50); padding: 8px 12px;
  text-align: left; font-weight: 600; font-size: 12px;
  border: 1px solid var(--slate-100);
}
.cookie-table td {
  padding: 8px 12px; border: 1px solid var(--slate-100);
  vertical-align: top; line-height: 1.5;
}
.cookie-table code {
  background: var(--slate-100); padding: 1px 5px;
  border-radius: 3px; font-size: 12px;
}

/* ─── Cookie consent banner ──────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--green-900); color: var(--green-100);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; z-index: 999; flex-wrap: wrap;
  border-top: 2px solid var(--green-700);
  font-size: 13px;
}
.cookie-banner a { color: var(--green-200); }
.cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--green-600); color: white;
  border: none; padding: 7px 16px; border-radius: 6px;
  font-size: 13px; cursor: pointer; font-family: var(--font-main);
}
.btn-cookie-decline {
  background: transparent; color: var(--green-200);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 7px 16px; border-radius: 6px;
  font-size: 13px; cursor: pointer; font-family: var(--font-main);
}

/* ─── Footer legal links ─────────────────────────────────────────── */
.footer-links {
  display: flex; gap: 1.5rem; justify-content: center;
  flex-wrap: wrap; margin-top: 0.5rem;
}
.footer-links a { color: var(--green-200); font-size: 12px; }

/* ─── Polish: loading states ─────────────────────────────────────── */
.btn[disabled], .btn:disabled {
  opacity: 0.6; cursor: not-allowed; pointer-events: none;
}
.btn-loading {
  position: relative; pointer-events: none; opacity: 0.8;
}
.btn-loading::after {
  content: '';
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ─── Polish: flash messages ─────────────────────────────────────── */
.flash-success {
  background: var(--green-50); border: 1px solid var(--green-200);
  color: var(--green-800); padding: 10px 16px;
  border-radius: var(--radius); font-size: 13px;
  margin-bottom: 1rem;
}
.flash-error {
  background: var(--red-100); border: 1px solid #f5c6c3;
  color: var(--red-500); padding: 10px 16px;
  border-radius: var(--radius); font-size: 13px;
  margin-bottom: 1rem;
}

/* ─── Polish: focus visible for keyboard nav ─────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 2px;
}

/* ─── Polish: page transitions ───────────────────────────────────── */
.page-container {
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Polish: table responsive wrapper ───────────────────────────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ─── Polish: skip to content (accessibility) ────────────────────── */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--green-600); color: white;
  padding: 8px 16px; border-radius: 0 0 6px 0;
  font-size: 13px; z-index: 9999; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }
