/* =========================================
   COMPLIANCE SPECIFIC VARIABLES
========================================= */
:root {
  --blue-light: #edf4ff;
  --green: #15803d;
  --orange: #b45309;
  --purple: #6941c6;
}

/* =========================================
   LAYOUT UTILITIES
========================================= */
.section { padding: 88px 0; }

.section-heading { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.section-heading h2 { margin: 12px 0; color: var(--navy); font-size: clamp(28px, 3.2vw, 38px); line-height: 1.25; letter-spacing: -1.1px; }
.section-heading p { color: var(--muted); font-size: 14px; line-height: 1.8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--blue);
  font-size: 11px; font-weight: 800; letter-spacing: 1.35px; text-transform: uppercase;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #dfeaff; }

/* =========================================
   HERO SECTION
========================================= */
.hero { padding-top: 76px; padding-bottom: 78px; overflow: hidden; background: radial-gradient(ellipse at 85% 18%, #edf4ff 0%, transparent 42%), #fff; }
.hero-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: center; gap: 65px; }
.hero h1 { margin: 22px 0 19px; color: var(--navy); font-size: clamp(38px, 4.4vw, 55px); line-height: 1.13; letter-spacing: -2.3px; font-weight: 800; }
.hero h1 span { color: var(--blue); }
.hero-description { max-width: 490px; color: #667085; font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 11px 18px; margin-top: 27px; color: #536176; font-size: 12px; font-weight: 600; }
.check { color: var(--green); font-weight: 800; margin-right: 4px; }

/* Dashboard illustration */
.dashboard-preview {
  min-width: 0; padding: 25px; background: #fff; border: 1px solid #e5eaf3;
  border-radius: 17px; box-shadow: 0 24px 70px rgba(28, 63, 120, 0.13); transform: rotate(0.6deg);
}
.preview-topbar, .preview-heading, .preview-row, .preview-footer { display: flex; align-items: center; }
.preview-topbar, .preview-heading { justify-content: space-between; gap: 12px; }
.preview-kicker { color: #8a97aa; font-size: 9px; font-weight: 800; letter-spacing: 1.1px; }
.preview-topbar h3 { margin-top: 4px; color: var(--navy); font-size: 19px; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; background: #f0f6ff; color: var(--blue); border-radius: 7px; font-size: 10px; font-weight: 700; }
.live-indicator span { width: 6px; height: 6px; background: #3b82f6; border-radius: 50%; }

.preview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin: 23px 0; }
.mini-stat { min-width: 0; padding: 14px 12px; background: #f8faff; border: 1px solid #edf1f7; border-radius: 10px; }
.mini-stat span, .mini-stat small { display: block; color: #7b879a; font-size: 10px; }
.mini-stat strong { display: block; margin: 5px 0 2px; color: var(--navy); font-size: 25px; line-height: 1.3; }
.mini-stat .blue-number { color: var(--blue); }
.mini-stat .green-number { color: var(--green); }

.preview-content { border: 1px solid var(--border); border-radius: 11px; padding: 15px; }
.preview-heading { margin-bottom: 9px; color: var(--navy); font-size: 12px; }
.preview-heading span { color: #98a2b3; font-size: 10px; }
.preview-row { gap: 11px; padding: 13px 0; border-top: 1px solid #edf0f5; }
.obligation-icon { width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; border-radius: 9px; font-size: 12px; font-weight: 800; }
.gst-icon { color: var(--blue); background: #eaf1ff; }
.tds-icon { color: var(--purple); background: #f1ebff; }
.itr-icon { color: var(--green); background: #e9f8ef; }

.obligation-info { min-width: 0; flex: 1; }
.obligation-info strong, .obligation-info span { display: block; }
.obligation-info strong { color: var(--navy); font-size: 12px; }
.obligation-info span { margin-top: 2px; color: #8a94a6; font-size: 10px; }

.status { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-due { color: var(--orange); background: #fff4df; }
.status-progress { color: var(--blue); background: #eaf1ff; }
.status-complete { color: var(--green); background: #e9f8ef; }
.status-overdue { color: #b42318; background: #feeceb; }

.preview-footer { gap: 9px; margin-top: 17px; color: #69768a; font-size: 11px; }
.footer-check { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #e9f8ef; font-size: 12px; font-weight: 800; }

/* =========================================
   SUMMARY STRIP
========================================= */
.summary-strip { padding: 25px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; }
.summary-item { display: flex; align-items: center; gap: 12px; }
.summary-icon { width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0; color: var(--blue); background: var(--blue-light); border-radius: 10px; font-size: 21px; }
.summary-item strong, .summary-item div > span { display: block; }
.summary-item strong { color: var(--navy); font-size: 13px; }
.summary-item div > span { margin-top: 2px; color: var(--muted); font-size: 11px; }

/* =========================================
   CATEGORIES SECTION
========================================= */
.categories-section { background: #f8faff; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.category-card { min-width: 0; padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: 13px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.category-card:hover { transform: translateY(-4px); border-color: #c6d8ff; box-shadow: var(--shadow); }
.category-icon { width: 47px; height: 47px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 12px; font-size: 12px; font-weight: 800; }

.icon-blue { color: var(--blue); background: #eaf1ff; }
.icon-purple { color: #6941c6; background: #f1ebff; }
.icon-cyan { color: #087eaa; background: #e5f8ff; }
.icon-orange { color: #b45309; background: #fff1dd; }
.icon-green { color: #15803d; background: #e7f8ed; }
.icon-indigo { color: #4f46e5; background: #ecebff; }

.category-card h3 { margin-bottom: 9px; color: var(--navy); font-size: 17px; }
.category-card p { min-height: 69px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.category-card a { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--blue); font-size: 12px; font-weight: 750; }
.category-card a span { font-size: 17px; transition: transform 0.2s; }
.category-card a:hover span { transform: translateX(4px); }

/* =========================================
   COMPLIANCE REGISTER TABLE
========================================= */
.register-section { background: #fff; }
.register-heading { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; text-align: left; }
.register-heading h2 { margin-top: 10px; margin-bottom: 8px; }
.register-heading p { font-size: 13px; margin: 0; }

.register-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.register-stat { padding: 19px 21px; background: #fff; border: 1px solid var(--border); border-radius: 11px; }
.register-stat span, .register-stat strong { display: block; }
.register-stat span { color: var(--muted); font-size: 12px; }
.register-stat strong { margin-top: 5px; color: var(--navy); font-size: 27px; }

.register-panel { overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 13px; }
.register-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 19px; border-bottom: 1px solid var(--border); }

.search-box { min-width: 240px; flex: 1; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #dce3ed; border-radius: 8px; background: #fff; }
.search-box > span { color: #8995a8; font-size: 21px; }
.search-box input { width: 100%; min-width: 0; height: 42px; border: 0; outline: 0; color: var(--navy); background: transparent; font-size: 12px; }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #e9f0ff; }

.filter-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-controls select { min-width: 145px; height: 43px; padding: 0 30px 0 12px; color: var(--text); background: #fff; border: 1px solid #dce3ed; border-radius: 8px; outline: 0; font-size: 12px; }
.filter-controls select:focus { border-color: var(--blue); }

.table-scroll { width: 100%; overflow-x: auto; }
.compliance-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.compliance-table th { padding: 15px 18px; color: #667085; background: #f8faff; font-size: 10px; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase; }
.compliance-table td { padding: 17px 18px; border-top: 1px solid #edf0f5; color: var(--text); font-size: 12px; }
.compliance-table tbody tr:hover { background: #fbfcff; }

.compliance-name { color: var(--navy); font-weight: 700; }
.client-name { color: var(--text); font-weight: 600; }
.category-label { display: inline-block; padding: 5px 8px; color: #4d5d77; background: #f0f3f8; border-radius: 5px; font-size: 10px; }

.empty-state { padding: 35px 20px !important; color: var(--muted) !important; text-align: center; white-space: normal; }

.table-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 19px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.text-button { border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 700; cursor: pointer; }
.demo-note { margin-top: 13px; color: #8a94a6; font-size: 11px; line-height: 1.7; }

/* =========================================
   PROCESS SECTION
========================================= */
.process-section { background: #f8faff; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.process-card { position: relative; padding: 29px; background: #fff; border: 1px solid var(--border); border-radius: 13px; }
.step-number { position: absolute; top: 24px; right: 25px; color: #d7e3fa; font-size: 27px; font-weight: 800; }
.process-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 11px; color: var(--blue); background: var(--blue-light); font-size: 23px; }
.process-card h3 { margin-bottom: 8px; color: var(--navy); font-size: 17px; }
.process-card p { color: var(--muted); font-size: 13px; line-height: 1.8; }

/* =========================================
   CTA SECTION
========================================= */
.cta-section { padding-top: 35px; padding-bottom: 85px; background: #f8faff; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px 48px; color: #fff; background: linear-gradient(115deg, #1746b3, #2463eb); border-radius: 17px; box-shadow: 0 20px 40px rgba(36, 99, 235, 0.15); }
.cta-eyebrow { color: #d6e4ff; background: rgba(255,255,255,0.15); padding: 6px 12px; border-radius: 20px;}
.cta-card h2 { max-width: 590px; margin: 12px 0 9px; font-size: clamp(25px, 3vw, 34px); line-height: 1.25; letter-spacing: -0.8px; }
.cta-card p { max-width: 570px; color: #dce7ff; font-size: 13px; line-height: 1.8; margin:0;}

/* =========================================
   COMPLIANCE DIALOG & TOAST
========================================= */
.compliance-dialog {
  width: min(520px, calc(100% - 30px)); max-width: none; max-height: 90vh; margin: auto; padding: 0;
  border: 1px solid var(--border); border-radius: 16px; color: var(--navy); background: #fff; box-shadow: 0 25px 80px rgba(16, 24, 40, 0.25);
}
.compliance-dialog::backdrop { background: rgba(17, 31, 57, 0.48); backdrop-filter: blur(3px); }
.dialog-form { display: grid; gap: 17px; max-height: 90vh; overflow-y: auto; padding: 27px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.dialog-heading h2 { margin-top: 6px; color: var(--navy); font-size: 25px; }
.close-dialog { width: 34px; height: 34px; border: 0; border-radius: 8px; background: #f1f4f9; color: var(--navy); font-size: 24px; cursor: pointer; }
.dialog-form label { display: grid; gap: 7px; color: #344054; font-size: 12px; font-weight: 700; }
.dialog-form input, .dialog-form select { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #dce3ed; border-radius: 8px; outline: 0; color: var(--navy); background: #fff; font-size: 13px; }
.dialog-form input:focus, .dialog-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #e9f0ff; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.dialog-note { color: var(--muted); font-size: 11px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; }

.toast {
  position: fixed; z-index: 200; right: 24px; bottom: 24px; max-width: calc(100% - 48px);
  padding: 14px 18px; border: 1px solid #b8e5c7; border-radius: 10px; color: #166534; background: #f0fdf4;
  box-shadow: var(--shadow); font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none;
  transform: translateY(12px); transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* =========================================
   RESPONSIVE (COMPLIANCE SPECIFICS)
========================================= */
@media (max-width: 1000px) {
  .hero-grid { gap: 35px; }
  .dashboard-preview { padding: 19px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card { padding: 22px; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 54px; padding-bottom: 55px; }
  .hero-grid { grid-template-columns: 1fr; gap: 37px; }
  .hero h1 { font-size: clamp(38px, 9vw, 50px); letter-spacing: -1.7px; }
  .dashboard-preview { transform: none; }
  .preview-stats { gap: 7px; }
  .mini-stat { padding: 11px 8px; }
  .mini-stat strong { font-size: 21px; }
  .mini-stat span, .mini-stat small { font-size: 9px; }
  .summary-grid { gap: 20px 12px; }
  .summary-item { align-items: flex-start; gap: 9px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  
  .register-heading { align-items: flex-start; flex-direction: column; }
  .register-heading .btn { width: 100%; }
  .register-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .register-stat { padding: 15px; }
  .register-stat strong { font-size: 24px; }
  
  .register-toolbar { align-items: stretch; flex-direction: column; padding: 14px; }
  .search-box { min-width: 0; }
  .filter-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-controls select { min-width: 0; width: 100%; }
  
  .process-grid { grid-template-columns: 1fr; gap: 14px; }
  .cta-section { padding-top: 10px; padding-bottom: 60px; }
  .cta-card { align-items: flex-start; flex-direction: column; padding: 30px 24px; }
  .cta-card .btn { width: 100%; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-points { flex-direction: column; gap: 8px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card p { min-height: auto; }
  .dialog-form { padding: 21px; }
  .dialog-grid { grid-template-columns: 1fr; }
}