/* =========================================================================
   FinNomy ITR Computation Generator — Modern Design System & Engine
   ========================================================================= */

:root {
  --navy: #0F2A4A;
  --navy-light: #1A3D66;
  --blue: #0B63D8;
  --blue-hover: #094eb0;
  --blue-light: #EEF4FE;
  --green: #00B37E;
  --green-dark: #00875A;
  --green-light: #E6F8F2;
  --green-border: #A7F3D0;
  --amber: #C97B3E;
  --amber-light: #FFF8E6;
  --red: #B0413E;
  --red-light: #FDEDEC;
  --grey: #64748B;
  --grey-light: #F8FAFC;
  --border: #E2E8F0;
  --border-dark: #CBD5E1;
  --bg: #F8FAFC;
  --text-dark: #0F172A;
  --text-sub: #475569;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.1);
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-snap-type: none !important;
  height: auto !important;
  min-height: 100%;
}

/* Full-Width Section Containers */
.landing-section-full {
  width: 100%;
  margin: 0;
  padding: 40px 0;
}

.section-white {
  background: #FFFFFF;
}

.section-grey {
  background: #F8FAFC;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-tool {
  background: #F1F5F9;
  border-top: 1px solid var(--border);
  padding: 44px 0 40px;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* =========================================================================
   1. HERO SECTION (MATCHING HOMEPAGE)
   ========================================================================= */
.hero-section {
  background-color: #FFFFFF;
  padding: 130px 0 36px 0;
  width: 100%;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00B37E;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 3.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0F172A;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 540px;
}

.hero-btn-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0B63D8;
  color: #FFFFFF !important;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(11, 99, 216, 0.35);
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
}

.btn-hero-primary:hover {
  background-color: #094eb0;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11, 99, 216, 0.45);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #FFFFFF;
  color: #0F172A !important;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  border: 1.5px solid #CBD5E1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background-color: #F8FAFC;
  border-color: #0B63D8;
  color: #0B63D8 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748B;
  flex-wrap: wrap;
}

.hero-visual-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-visual-wrap img {
  width: 100%;
  max-width: 580px;
  max-height: 540px;
  height: auto;
  object-fit: contain;
  background: transparent;
  display: block;
}

/* =========================================================================
   SECTION HEADERS
   ========================================================================= */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 24px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--blue);
  margin-bottom: 6px;
}

.section-main-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.section-main-subtitle {
  font-size: 15px;
  color: var(--grey);
  margin: 0;
  line-height: 1.55;
}

/* =========================================================================
   2. REAL USE CASES (4-QUADRANT GRID)
   ========================================================================= */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.usecase-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.usecase-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.usecase-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}

.usecase-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue);
  background: var(--blue-light);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  width: fit-content;
}

.usecase-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}

.usecase-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.usecase-points {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  font-size: 12.5px;
  font-weight: 600;
  color: #065F46;
}

/* =========================================================================
   3. WORKFLOW STEPS (SEAMLESS ZIG-ZAG 5-STEP LAYOUT)
   ========================================================================= */
.zigzag-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1060px;
  margin: 0 auto;
}

.zigzag-step {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 4px 0;
  box-shadow: none;
  transition: none;
}

.zigzag-step.flip .zigzag-text {
  order: 2;
}

.zigzag-step.flip .zigzag-visual {
  order: 1;
}

.zigzag-step.step-highlight {
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 8px 24px rgba(0, 179, 126, 0.12);
}

.step-tag-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.step-tag-pill.pill-green {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.step-heading {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.step-num {
  color: #0B63D8;
  margin-right: 6px;
}

.zigzag-desc {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 16px;
}

.zigzag-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zigzag-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.45;
}

.zigzag-visual-card {
  background: #F8FAFC;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

/* =========================================================================
   4. OUTPUT PREVIEW MOCKUP
   ========================================================================= */
.mockup-preview-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 1060px;
  margin: 0 auto;
}

.mockup-header {
  background: #0F2A4A;
  color: #FFFFFF;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.mockup-pill-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  color: #60A5FA;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.mockup-title {
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 4px;
}

.mockup-subtitle {
  font-size: 13px;
  color: #94A3B8;
  margin: 0;
}

.badge-status-green {
  background: #10B981;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.tax-metric-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 24px 28px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
}

.tax-metric-tile {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.tax-metric-lbl {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--grey);
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.tax-metric-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.tax-metric-sub {
  font-size: 11.5px;
  color: var(--grey);
  margin-top: 2px;
}

.mockup-body {
  padding: 24px 28px;
}

.mockup-table-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.mockup-overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mockup-overview-table th {
  background: #F1F5F9;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mockup-overview-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #F1F5F9;
  color: #334155;
}

/* =========================================================================
   5. REVEAL FEATURE GRID (4 BENEFIT CARDS)
   ========================================================================= */
.reveal-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.reveal-grid-5 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.reveal-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.reveal-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.reveal-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 22px;
}

.reveal-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}

.reveal-card-desc {
  font-size: 13.5px;
  color: var(--grey);
  line-height: 1.5;
  margin: 0;
}

/* =========================================================================
   6. INTERACTIVE TAX TOOL & CARD STYLING
   ========================================================================= */
.privacy-banner {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 13.5px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.5;
}

.privacy-banner .icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.error-box {
  background: var(--red-light);
  border: 1px solid #F5C6C2;
  color: #8A2E27;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  margin: 14px 0;
  line-height: 1.45;
}

.warning-box {
  background: var(--amber-light);
  border: 1px solid #FDE68A;
  color: #92400E;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin: 14px 0;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.btn {
  background: var(--blue);
  color: #ffffff;
  border: none;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover:not(:disabled) {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.secondary {
  background: #ffffff;
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn.secondary:hover:not(:disabled) {
  background: var(--grey-light);
  border-color: var(--border-dark);
}

.btn.green {
  background: var(--green);
}

.btn.green:hover:not(:disabled) {
  background: var(--green-dark);
}

.btn.ghost {
  background: transparent;
  color: var(--blue);
  border: none;
  padding: 11px 16px;
  font-weight: 500;
}

.btn.ghost:hover {
  text-decoration: underline;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 42px 20px;
  text-align: center;
  cursor: pointer;
  background: #FAFAFC;
  transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--blue);
  background: #F0F7FF;
}

.upload-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

input[type="file"] {
  display: none;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grey-light);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 500;
}

.password-box {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 8px;
  padding: 16px;
  margin-top: 14px;
}

.password-box label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #92400E;
  margin-bottom: 8px;
}

.password-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.password-input-row input {
  flex: 1;
  min-width: 220px;
  padding: 8px 12px;
  border: 1px solid #D97706;
  border-radius: 6px;
  font-size: 14px;
}

.loading {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  font-size: 14.5px;
  color: var(--navy);
  margin-bottom: 20px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =========================================================================
   REVIEW SCREEN & REGIME OPTIMIZER (PRESERVED DOM CLASSES)
   ========================================================================= */
.review-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}

.field-row {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  align-items: center;
}

.field-row label {
  flex: 0 0 280px;
  font-size: 13.5px;
  color: #374151;
  font-weight: 500;
}

.field-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  color: #1F2937;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field-row input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 99, 216, 0.12);
}

.section-label {
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy);
  margin: 22px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.section-label:first-of-type {
  border-top: none;
  margin-top: 12px;
  padding-top: 0;
}

.muted-note {
  font-size: 12.5px;
  color: var(--grey);
  font-style: italic;
}

.regime-optimizer-box {
  background: linear-gradient(135deg, #F0F7FF 0%, #E6F8F2 100%);
  border: 1.5px solid #BFDBFE;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 16px 0 20px;
}

.regime-opt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.regime-opt-badge {
  display: inline-block;
  background: var(--green);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.regime-opt-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.regime-toggle-group {
  display: inline-flex;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}

.regime-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.regime-btn.active {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.regime-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.regime-col {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  transition: all 0.15s;
}

.regime-col.active-col {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(11, 99, 216, 0.15);
}

.regime-col-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.regime-col-tax {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}

.regime-col-sub {
  font-size: 12px;
  color: var(--grey);
  margin-top: 2px;
}

/* Computation Document Container */
.computation-container {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

.doc-action-bar {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.switch-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin: 0;
  cursor: pointer;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  position: absolute;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #CBD5E1;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch-toggle input:checked + .slider-round {
  background-color: var(--blue);
}

.switch-toggle input:focus + .slider-round {
  box-shadow: 0 0 0 3px rgba(11, 99, 216, 0.2);
}

.switch-toggle input:checked + .slider-round:before {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

/* =========================================================================
   COMPUTATION OF TOTAL INCOME (CA FORMAT)
   ========================================================================= */
#computation {
  background: #ffffff;
  padding: 40px 44px;
  font-size: 13px;
  position: relative;
  overflow: hidden;
  color: #1F2937;
  line-height: 1.45;
}

#watermarkLayer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 45% auto;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

#computation > *:not(#watermarkLayer) {
  position: relative;
  z-index: 1;
}

.doc-header-block {
  text-align: center;
  margin-bottom: 18px;
}

.doc-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.doc-sub {
  font-size: 12.5px;
  color: var(--grey);
  margin-bottom: 4px;
}

.regime-tag-label {
  font-size: 11.5px;
  color: var(--navy);
  background: #F3F4F6;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  margin-top: 4px;
  border: 1px solid var(--border);
}

.assessee-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 12px;
}

.assessee-table td {
  border: 1px solid var(--border);
  padding: 5px 8px;
  vertical-align: middle;
}

.assessee-table td.k {
  background: #F7F9FC;
  font-weight: 600;
  color: #374151;
  width: 18%;
}

#computation .section-h {
  font-weight: 700;
  color: var(--navy);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 16px 0 6px;
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--navy);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 6px;
  font-size: 12.5px;
}

.data-table td {
  padding: 4px 4px;
  vertical-align: top;
}

.data-table .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.data-table .head-row td {
  font-weight: 700;
  color: var(--navy);
  padding-top: 6px;
  padding-bottom: 4px;
  border-top: 1px solid #E5E7EB;
}

.data-table .sub-row td {
  padding-left: 18px;
  color: #4B5563;
  font-size: 12px;
}

.data-table .total-row td {
  font-weight: 700;
  color: var(--navy);
  border-top: 1px solid #9CA3AF;
  border-bottom: 1px solid #9CA3AF;
  padding: 6px 4px;
}

.data-table .grand-total-row td {
  font-weight: 800;
  color: var(--navy);
  font-size: 13px;
  border-top: 1.5px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  background: #F9FAFB;
  padding: 7px 4px;
}

.refund-highlight td {
  color: var(--green-dark) !important;
  background: #ECFDF5 !important;
}

.payable-highlight td {
  color: var(--red) !important;
  background: #FEF2F2 !important;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  margin-bottom: 12px;
  font-size: 11.5px;
}

.detail-table th,
.detail-table td {
  border: 1px solid var(--border);
  padding: 5px 6px;
  text-align: left;
}

.detail-table th {
  background: #F7F9FC;
  font-weight: 700;
  color: var(--navy);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.detail-table td.num {
  text-align: right;
  white-space: nowrap;
}

.detail-table .total-sub td {
  background: #F9FAFB;
}

.verification-box {
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: #FAFAFC;
  border-radius: 6px;
  font-size: 10.5px;
  line-height: 1.4;
}

.verification-box b {
  color: var(--navy);
  font-size: 10.5px;
}

.verification-box p {
  margin: 4px 0 8px;
  color: #4B5563;
  font-size: 10px;
  line-height: 1.4;
}

.sign-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 10px;
}

.signature-line {
  text-align: right;
  border-top: 1px dashed #9CA3AF;
  padding-top: 4px;
  width: 180px;
}

.closing-footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 2px solid var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.closing-footer .footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.closing-footer .footer-left img {
  width: 34px;
  height: 34px;
  display: block;
}

.closing-footer .brand {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}

.closing-footer .tag {
  font-size: 11px;
  color: var(--grey);
  font-style: italic;
}

.closing-footer .footer-right {
  text-align: right;
}

.closing-footer .site-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

.closing-footer .note-text {
  font-size: 10.5px;
  color: var(--grey);
  margin-top: 2px;
}

.form-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EFF6FF;
  color: var(--blue);
  border: 1px solid #BFDBFE;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 4px;
}

.review-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.metric-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s;
}

.metric-card .label {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.metric-card .val {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.review-head-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.review-head-card.active-head {
  border-color: #93C5FD;
  box-shadow: 0 1px 3px rgba(11, 99, 216, 0.06);
}

.review-head-top {
  padding: 12px 16px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.review-head-card.active-head .review-head-top {
  background: #F0F7FF;
  border-bottom-color: #DBEAFE;
}

.review-head-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.head-status-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.head-status-badge.active {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.head-status-badge.inactive {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
}

.review-head-body {
  padding: 14px 16px 8px;
}

/* =========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================= */
@media (max-width: 900px) {
  .hero-section {
    padding: 72px 0 24px 0;
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
    padding: 0 20px;
  }
  .hero-title {
    font-size: clamp(1.9rem, 5vw, 2.5rem);
  }
  .hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    margin: 0 auto 20px auto;
  }
  .hero-btn-group, .hero-trust-badges {
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-visual-wrap img {
    max-width: 360px;
    margin: 0 auto;
  }
  .usecases-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .zigzag-step, .zigzag-step.flip {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px 0;
  }
  .zigzag-step.flip .zigzag-text {
    order: 1;
  }
  .zigzag-step.flip .zigzag-visual {
    order: 2;
  }
  .reveal-grid, .reveal-grid-4, .reveal-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .tax-metric-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .landing-section-full {
    padding: 28px 0;
  }
  .section-container {
    padding: 0 16px;
  }
  .section-header {
    margin-bottom: 24px;
  }
  .section-header .section-main-title {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
  }
  .section-header .section-main-subtitle {
    font-size: 13.5px;
  }
  .hero-section {
    padding-top: 110px;
    padding-bottom: 24px;
  }
  .hero-container {
    padding: 0 16px;
  }
  .card, #upload-card {
    padding: 18px 14px;
    border-radius: 12px;
  }
  #dropzone {
    padding: 24px 14px;
  }
  .upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
  }
  .step-heading {
    font-size: clamp(1.25rem, 3.8vw, 1.5rem);
  }
  .zigzag-step, .zigzag-step.flip {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 14px;
  }
  .zigzag-step.step-highlight {
    padding: 18px 14px;
  }
  .reveal-grid, .reveal-grid-4, .reveal-grid-5 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tax-metric-preview-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mockup-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 14px;
  }
  .mockup-title {
    font-size: 16px;
  }
  .mockup-subtitle {
    font-size: 12px;
    word-break: break-word;
  }
  .mockup-body {
    padding: 16px 12px;
  }
  .mockup-overview-table {
    font-size: 11.5px;
    min-width: 480px;
  }
  .mockup-overview-table th, .mockup-overview-table td {
    padding: 6px 8px;
  }
  .field-row {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .field-row label {
    flex: auto;
  }
  .regime-compare-grid {
    grid-template-columns: 1fr;
  }
  #computation {
    padding: 18px 12px;
    font-size: 11px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .assessee-table td.k {
    width: 28%;
  }
  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .password-input-row {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .password-input-row input {
    width: 100%;
    box-sizing: border-box;
  }
  .password-input-row button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero-btn-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-btn-group .btn-hero-primary,
  .hero-btn-group .btn-hero-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 12px 18px;
  }
  .hero-trust-badges {
    font-size: 11px;
    gap: 4px;
  }
  .hero-visual-wrap img {
    max-width: 280px;
  }
}

/* =========================================================================
   PRINT STYLES
   ========================================================================= */
@media print {
  body {
    background: #ffffff;
  }
  .navbar,
  .hero-section,
  #use-cases-section,
  #workflow-section,
  #tax-output-preview,
  #why-choose-section,
  .privacy-banner,
  .doc-action-bar,
  #upload-card,
  #loadingBox,
  #reviewSection,
  .actions,
  #footer,
  .site-footer {
    display: none !important;
  }
  .section-tool, .landing-section-full {
    padding: 0 !important;
    background: #ffffff !important;
    border: none !important;
  }
  .section-container {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: #ffffff !important;
  }
  #computation {
    padding: 0 !important;
  }
}
