/*
  Adhiniyam Design System - Phase 2
  Scope: visual foundation only. No HTML structure, SEO, URL, form, or tool logic changes.
*/

:root {
  /* Brand colors */
  --navy: #0F1E3D;
  --navy-2: #132B55;
  --navy-3: #173B78;
  --blue: #2D65F3;
  --blue-2: #1F55DA;
  --blue-3: #DDE9FF;
  --green: #15A86B;
  --green-2: #0F8F5B;
  --amber: #B7791F;
  --red: #D14444;

  /* Neutral system */
  --ink: #17233B;
  --text: #253A61;
  --muted: #60708D;
  --muted-2: #7A89A6;
  --soft: #F6FAFF;
  --soft-2: #EFF6FF;
  --card: #FFFFFF;
  --border: #D9E6FB;
  --border-2: #E7EFFD;
  --focus: #6EA1FF;

  /* Elevation */
  --shadow-xs: 0 4px 14px rgba(15, 30, 61, .06);
  --shadow-sm: 0 10px 30px rgba(15, 30, 61, .07);
  --shadow: 0 18px 50px rgba(15, 30, 61, .10);
  --shadow-lg: 0 28px 80px rgba(15, 30, 61, .14);

  /* Shape and spacing */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius: var(--radius-lg);

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 44px;
  --space-8: 64px;

  --container: 1160px;
  --container-wide: 1240px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(45, 101, 243, .08), transparent 34rem),
    var(--soft);
  color: var(--navy);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid rgba(110, 161, 255, .65);
  outline-offset: 3px;
}

::selection {
  background: rgba(45, 101, 243, .18);
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.section {
  padding: 84px 0;
}

.section-sm {
  padding: 54px 0;
}

.soft-section {
  background: var(--card);
}

.blue-section {
  background:
    radial-gradient(circle at 10% 0%, rgba(45, 101, 243, .08), transparent 24rem),
    var(--soft-2);
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -.055em;
}

h2 {
  font-size: clamp(29px, 3vw, 45px);
  letter-spacing: -.04em;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 17px;
}

p {
  margin: 0 0 18px;
  color: var(--muted);
}

ul,
ol {
  color: var(--muted);
}

strong {
  color: var(--navy);
}

.lead {
  color: #52637F;
  font-size: 18px;
  max-width: 780px;
}

.text-center,
.center {
  text-align: center;
}

.mb-36 {
  margin-bottom: 36px;
}

.narrow {
  max-width: 900px;
  margin-inline: auto;
}

.full {
  width: 100%;
}

.hidden {
  display: none !important;
}

/* Labels, badges and pills */
.eyebrow,
.badge,
.chip,
.pill,
.mini-badge,
.badge-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-weight: 850;
}

.eyebrow {
  padding: 8px 14px;
  background: linear-gradient(135deg, #EAF1FF, #F7FAFF);
  color: var(--blue);
  font-size: 13px;
  border: 1px solid #DCE8FF;
  box-shadow: var(--shadow-xs);
}

.badge,
.mini-badge {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.2;
}

.badge.live,
.badge.success,
.success,
.good {
  background: #E9FAF3;
  color: var(--green);
}

.badge.soon {
  background: #FFF3D2;
  color: #9A6300;
}

.badge.info,
.badge-line,
.label {
  background: #EAF1FF;
  color: var(--blue);
}

.chips,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  background: var(--card);
  border: 1px solid var(--border);
  color: #435473;
  font-size: 13px;
  padding: 8px 12px;
  box-shadow: var(--shadow-xs);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .10);
  color: #fff;
  font-size: 13px;
  padding: 8px 12px;
}

/* Buttons */
.btn-row,
.hero-actions,
.actions,
.action-row,
.sign-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn,
.mini-btn,
button.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  user-select: none;
}

.btn.primary,
.btn.green,
.btn.secondary,
.btn.danger {
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: 0 14px 30px rgba(45, 101, 243, .24);
}

.btn.green {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #fff;
  box-shadow: 0 14px 30px rgba(21, 168, 107, .20);
}

.btn.secondary {
  background: #fff;
  color: var(--blue);
  border-color: #BFD2FF;
  box-shadow: var(--shadow-xs);
}

.btn.danger,
.mini-btn.remove {
  background: #fff;
  color: var(--red);
  border-color: #F1BBBB;
}

.btn:hover,
.mini-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn:active,
.mini-btn:active {
  transform: translateY(0);
}

.mini-btn {
  min-height: 38px;
  padding: 9px 13px;
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--border);
  font-size: 13px;
}

/* Top contact bar */
.top-contact-bar {
  background: linear-gradient(90deg, var(--navy), var(--navy-3));
  color: #EAF2FF;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
}

.top-contact-wrap {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-contact-link {
  color: #EAF2FF;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.top-contact-link:hover {
  color: #fff;
  text-decoration: underline;
}

.top-contact-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-whatsapp-link {
  background: rgba(21, 168, 107, .18);
  border: 1px solid rgba(21, 168, 107, .45);
  border-radius: 999px;
  color: #DFFFEF;
  padding: 5px 10px;
}

.top-whatsapp-link:hover {
  background: rgba(21, 168, 107, .28);
  color: #fff;
  text-decoration: none;
}

.top-contact-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}

.top-contact-icon svg {
  width: 14px !important;
  height: 14px !important;
  display: block;
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(217, 230, 251, .9);
  box-shadow: 0 10px 30px rgba(15, 30, 61, .05);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: contain;
  display: block;
  box-shadow: 0 8px 22px rgba(15, 30, 61, .10);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.brand-name {
  display: block;
  color: var(--navy);
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.brand-tag {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  margin-top: -3px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 21px;
  color: #253A61;
  font-weight: 780;
}

.nav-links a {
  position: relative;
  padding: 26px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--blue);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-btn {
  display: none;
  border: 1px solid #DCE8FF;
  background: #EEF4FF;
  border-radius: 12px;
  color: var(--blue);
  font-weight: 900;
  padding: 10px 12px;
  cursor: pointer;
}

/* Hero and sections */
.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  background:
    radial-gradient(circle at 84% 12%, rgba(45, 101, 243, .20) 0, transparent 28%),
    linear-gradient(180deg, #FFFFFF 0%, #F7FBFF 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -34% -10%;
  height: 42%;
  background: radial-gradient(circle, rgba(45, 101, 243, .08), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 44px;
}

.hero p {
  font-size: 18px;
}

.hero-highlight {
  color: var(--blue);
}

.section-title {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-subtitle,
.desc,
.muted,
.mini-muted,
.small-muted,
.small-note {
  color: var(--muted);
}

.small-note,
.small-muted,
.mini-muted {
  font-size: 13px;
}

/* Layout grid */
.grid,
.card-grid,
.summary-grid,
.result-grid,
.tax-grid {
  display: grid;
  gap: 22px;
}

.grid-2,
.two,
.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3,
.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Cards and panels */
.card,
.tool-card,
.service-card,
.blog-card,
.summary-card,
.result-card,
.hero-card,
.meta-box,
.doc-box,
.party-box,
.note-box,
.disclaimer-box,
.result-box,
.status-box,
.success-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.card,
.tool-card,
.service-card,
.blog-card,
.summary-card,
.result-card,
.hero-card,
.meta-box,
.doc-box,
.party-box,
.note-box,
.disclaimer-box,
.result-box,
.status-box,
.success-box {
  padding: 24px;
}

.card,
.tool-card,
.service-card,
.blog-card,
.summary-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover,
.tool-card:hover,
.service-card:hover,
.blog-card:hover,
.summary-card:hover {
  transform: translateY(-3px);
  border-color: #BFD2FF;
  box-shadow: var(--shadow);
}

.card p,
.tool-card p,
.service-card p,
.blog-card p,
.summary-card p,
.result-card p {
  font-size: 15px;
}

.card-top,
.section-head,
.doc-head,
.preview-head,
.result-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.icon-bubble,
.tool-icon,
.tool-icon-bubble {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  border-radius: 17px;
  background: linear-gradient(135deg, #EAF1FF 0%, #F3F7FF 100%);
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px rgba(45, 101, 243, .08), 0 10px 22px rgba(45, 101, 243, .10);
}

.meta {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 750;
  margin: 12px 0;
}

.value {
  color: var(--navy);
  font-weight: 900;
}

/* Homepage mockup */
.mockup,
.tool-panel,
.tool-shell,
.tax-tool-wrap,
.preview-wrap,
.doc-preview,
.resolution-preview,
.proposal-preview,
.note-preview,
.challan-preview,
.hra-preview,
.nda-preview,
.agreement-preview {
  background: rgba(255, 255, 255, .92);
  border: 1px solid #DCE8FF;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.mockup,
.tool-panel,
.tool-shell,
.tax-tool-wrap,
.preview-wrap {
  padding: 22px;
}

.mockup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-card {
  background: #F7FBFF;
  border: 1px solid #E0EAFF;
  border-radius: 18px;
  padding: 15px;
}

.mini-card strong {
  display: block;
  color: var(--navy);
}

.mini-card span {
  color: var(--muted);
  font-size: 13px;
}

.big-stat {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--navy), #173668);
  color: #fff;
}

.big-stat span,
.big-stat strong {
  color: #fff;
}

/* CTA sections */
.dark-cta,
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 18%, rgba(45, 101, 243, .32), transparent 32%),
    linear-gradient(135deg, var(--navy), #123A75);
  color: #fff;
  padding: 50px;
  box-shadow: var(--shadow-lg);
}

.dark-cta h2,
.dark-cta h3,
.cta-band h2,
.cta-band h3 {
  color: #fff;
}

.dark-cta p,
.cta-band p {
  color: #D9E6FB;
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

/* Footer */
.site-footer {
  background:
    radial-gradient(circle at 82% 8%, rgba(45, 101, 243, .22), transparent 28rem),
    var(--navy);
  color: #DCE8FF;
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.site-footer h4 {
  color: #fff;
  margin: 0 0 14px;
}

.site-footer a {
  display: block;
  color: #C7D7F5;
  font-size: 14px;
  margin: 8px 0;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer p {
  color: #C7D7F5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 34px;
  padding-top: 20px;
  color: #AFC1E4;
  font-size: 13px;
}

/* Directory search and filters */
.tool-search-panel {
  position: relative;
  z-index: 5;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  margin-top: -34px;
  padding: 20px;
}

.search-input,
.field input,
.field select,
.field textarea,
input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.search-input {
  width: 100%;
  border-radius: 999px;
  font-size: 16px;
  padding: 15px 18px;
}

.search-input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(110, 161, 255, .18);
  outline: none;
}

.filter-tabs,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tabs {
  margin: 14px 0 24px;
}

.filter-tab,
.tab-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  padding: 10px 14px;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.filter-tab:hover,
.tab-btn:hover {
  border-color: #BFD2FF;
  color: var(--blue);
  transform: translateY(-1px);
}

.filter-tab.active,
.tab-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* Forms and tool UI */
.form-card,
.tool-form,
.upload-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.form-section,
.disclaimer-section,
.faq-section {
  background: #FBFDFF;
  border: 1px solid var(--border-2);
  border-radius: 20px;
  margin: 18px 0;
  padding: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field label {
  display: block;
  color: #2B3A59;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

input[type="file"] {
  padding: 12px;
}

.upload-box {
  text-align: center;
  border-style: dashed;
  background: linear-gradient(180deg, #fff, #F8FBFF);
}

.upload-title {
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}

.upload-sub {
  color: var(--muted);
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #F7FBFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.file-name {
  color: var(--navy);
  font-weight: 800;
}

.progress-wrap {
  width: 100%;
  height: 10px;
  overflow: hidden;
  background: #EAF1FF;
  border-radius: 999px;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: inherit;
  transition: width 220ms ease;
}

.error-msg {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

/* Previews and documents */
.preview-box,
.doc-preview,
.resolution-preview,
.proposal-preview,
.note-preview,
.challan-preview,
.hra-preview,
.nda-preview,
.agreement-preview {
  background: #fff;
  border: 1px dashed #AFC4ED;
  border-radius: 18px;
  margin-top: 16px;
  padding: 18px;
  overflow: auto;
}

.preview-title,
.doc-title,
.clause-title {
  color: var(--navy);
  font-weight: 900;
}

.clause-title {
  margin-top: 18px;
}

.preview-totals,
.total-box,
.totals {
  max-width: 430px;
  margin-left: auto;
  background: #F7FBFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.total-line,
.total-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #E1EAFA;
  padding: 8px 0;
}

.total-line.grand,
.total-row.grand,
.grand {
  border-bottom: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 950;
}

.tax-highlight {
  color: var(--blue);
  font-weight: 950;
}

.slab-list {
  margin: 0;
  padding-left: 18px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Tables */
.table-wrap,
.items-wrap,
.items-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.simple-table,
.items-table,
.item-table,
.preview-table,
.meta-table,
.compare-table,
.calc-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.simple-table th,
.simple-table td,
.items-table th,
.items-table td,
.item-table th,
.item-table td,
.preview-table th,
.preview-table td,
.meta-table th,
.meta-table td,
.compare-table th,
.compare-table td,
.calc-table th,
.calc-table td {
  border-bottom: 1px solid #E8F0FF;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.simple-table th,
.items-table th,
.item-table th,
.preview-table th,
.meta-table th,
.compare-table th,
.calc-table th {
  background: #F7FBFF;
  color: var(--navy);
  font-weight: 900;
}

.simple-table input,
.items-table input,
.item-table input,
.items-table select,
.item-table select {
  width: 112px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.amount,
.qty,
.rate,
.hsn,
.desc,
.unit,
.disc,
.gst,
.taxable,
.gstAmt,
.lineTotal,
.lineVal,
.rowTotal,
.allowance-name,
.allowance-amount {
  max-width: 100%;
}

/* FAQ and content boxes */
.faq-item {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 10px 0;
  box-shadow: var(--shadow-xs);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border: 0;
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
  padding: 16px 18px;
  text-align: left;
}

.faq-a {
  display: none;
  color: var(--muted);
  padding: 0 18px 16px;
}

.faq-item.open .faq-a {
  display: block;
}

.quick-box,
.info-box,
.warning-box,
.contact-placeholder {
  border-radius: 20px;
  margin: 26px 0;
  padding: 22px;
}

.quick-box,
.info-box {
  background: #F1F7FF;
  border: 1px solid var(--border);
}

.warning-box,
.contact-placeholder {
  background: #FFF9E8;
  border: 1px solid #FFE3A2;
  color: #8A6100;
}

.disclaimer,
.disclaimer-box {
  color: var(--muted);
}

/* Blog and legal pages */
.article {
  background: #fff;
}

.article-wrap {
  max-width: 850px;
  margin: auto;
}

.article h2 {
  font-size: 30px;
  margin-top: 36px;
}

.article p,
.article li {
  font-size: 17px;
}

.article ul,
.article ol {
  padding-left: 22px;
}

.toc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  margin: 24px 0;
  padding: 18px;
  box-shadow: var(--shadow-xs);
}

.toc a {
  display: block;
  color: var(--blue);
  font-weight: 750;
  margin: 8px 0;
}

.legal-page {
  max-width: 900px;
  margin: auto;
}

.legal-page h2 {
  font-size: 28px;
  margin-top: 32px;
}


/* Small reusable content helpers */
.soft {
  color: var(--muted);
}

.mini-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FBFF 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  color: var(--muted);
}

.faq {
  background: var(--soft);
}

.proposal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* Tool SVG icon upgrade */
.tool-icon-bubble {
  position: relative;
  overflow: hidden;
}

.tool-icon-bubble::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .65);
}

.tool-svg-icon {
  position: relative;
  z-index: 1;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}

.tool-svg-icon svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-icon-bubble.business-icon {
  background: linear-gradient(135deg, #EAF1FF 0%, #F3F7FF 100%);
  color: var(--blue);
}

.tool-icon-bubble.hr-icon {
  background: linear-gradient(135deg, #EAFBF4 0%, #F3FFF9 100%);
  color: var(--green);
}

.tool-icon-bubble.tax-icon {
  background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFF 100%);
  color: #4D5FEA;
}

.tool-icon-bubble.legal-icon {
  background: linear-gradient(135deg, #FFF7E6 0%, #FFFCF4 100%);
  color: var(--amber);
}

/* Responsive system */
@media (max-width: 1100px) {
  .nav-links {
    gap: 14px;
    font-size: 14px;
  }

  .header-actions .btn {
    padding-inline: 15px;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .two,
  .two-col {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4,
  .three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links,
  .header-actions {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav-wrap.open {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-wrap.open .nav-links,
  .nav-wrap.open .header-actions {
    width: 100%;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-wrap.open .nav-links a {
    width: 100%;
    padding: 6px 0;
  }

  .nav-wrap.open .nav-links a::after {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .cta-strip,
  .card-top,
  .section-head,
  .doc-head,
  .preview-head,
  .result-hero,
  .switch-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dark-cta,
  .cta-band {
    padding: 34px;
  }
}

@media (max-width: 720px) {
  .top-contact-wrap {
    min-height: 44px;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 7px 0;
  }

  .top-contact-right {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .top-contact-bar {
    font-size: 12px;
  }

  .nav-wrap {
    min-height: 72px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 30px, var(--container));
  }

  .section {
    padding: 58px 0;
  }

  .section-sm {
    padding: 42px 0;
  }

  .hero {
    padding: 58px 0;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .lead,
  .hero p {
    font-size: 16px;
  }

  .grid-3,
  .grid-4,
  .three,
  .footer-grid,
  .mock-grid,
  .summary-grid,
  .result-grid,
  .tax-grid {
    grid-template-columns: 1fr;
  }

  .big-stat {
    grid-column: auto;
  }

  .btn-row,
  .hero-actions,
  .actions,
  .action-row {
    width: 100%;
  }

  .btn-row .btn,
  .hero-actions .btn,
  .actions .btn,
  .action-row .btn {
    width: 100%;
  }

  .filter-tabs,
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .filter-tab,
  .tab-btn {
    white-space: nowrap;
  }

  .form-card,
  .tool-form,
  .upload-box,
  .tool-panel,
  .tool-shell,
  .tax-tool-wrap,
  .preview-wrap {
    padding: 18px;
  }

  .card,
  .tool-card,
  .service-card,
  .blog-card,
  .summary-card,
  .result-card,
  .hero-card,
  .meta-box,
  .doc-box,
  .party-box,
  .note-box,
  .disclaimer-box,
  .result-box,
  .status-box,
  .success-box {
    padding: 20px;
  }

  .dark-cta,
  .cta-band {
    border-radius: 24px;
    padding: 28px;
  }

  .cta-strip {
    padding: 20px;
  }

  .preview-totals,
  .total-box,
  .totals {
    max-width: none;
    margin-left: 0;
  }

  .simple-table,
  .items-table,
  .item-table,
  .preview-table,
  .meta-table,
  .compare-table,
  .calc-table {
    min-width: 680px;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  h1 {
    font-size: 34px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-tag {
    font-size: 11px;
  }

  .brand-logo,
  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .card,
  .tool-card,
  .service-card,
  .blog-card,
  .summary-card,
  .result-card,
  .form-card,
  .tool-form {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .top-contact-bar,
  .site-header,
  .site-footer,
  .btn-row,
  .hero,
  .faq-list,
  .cta-strip,
  .dark-cta,
  .cta-band {
    display: none !important;
  }

  .container,
  .article-wrap,
  .legal-page {
    width: 100%;
    max-width: none;
  }

  .card,
  .form-card,
  .preview-box,
  .doc-preview,
  .resolution-preview,
  .proposal-preview,
  .note-preview,
  .challan-preview,
  .hra-preview,
  .nda-preview,
  .agreement-preview {
    border-color: #ccc;
    box-shadow: none;
  }
}

/*
  Phase 3 - Homepage Beautification
  Scope: homepage structure and visual hierarchy only. Existing IDs used by common.js are preserved.
*/
.hero-premium {
  isolation: isolate;
  min-height: 680px;
  padding: 104px 0 88px;
  background:
    linear-gradient(115deg, rgba(246, 250, 255, .98) 0%, rgba(255, 255, 255, .96) 44%, rgba(232, 241, 255, .92) 100%);
}

.hero-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(45, 101, 243, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 101, 243, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95), transparent 88%);
}

.hero-bg-orb {
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
}

.hero-orb-one {
  width: 420px;
  height: 420px;
  top: 70px;
  right: -130px;
  background: radial-gradient(circle, rgba(45, 101, 243, .22), transparent 68%);
}

.hero-orb-two {
  width: 300px;
  height: 300px;
  left: -120px;
  bottom: 30px;
  background: radial-gradient(circle, rgba(21, 168, 107, .14), transparent 68%);
}

.premium-hero-grid {
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-premium h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: #0B1730;
}

.hero-lead {
  max-width: 680px;
  color: #465A79;
  font-size: 19px;
}

.hero-action-panel {
  max-width: 670px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(191, 210, 255, .88);
  border-radius: 26px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 48px rgba(15, 30, 61, .08);
  backdrop-filter: blur(10px);
}

.micro-copy {
  margin: 12px 0 0;
  color: #647491;
  font-size: 13px;
  font-weight: 750;
}

.trust-badge {
  background: #E9FAF3;
  color: var(--green);
  border: 1px solid rgba(21, 168, 107, .18);
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: 22px;
}

.proof-item {
  padding: 18px;
  border: 1px solid rgba(217, 230, 251, .95);
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-xs);
}

.proof-item strong {
  display: block;
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.04em;
}

.proof-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero-showcase {
  position: relative;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 34px -24px -24px 50px;
  z-index: -1;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(45, 101, 243, .18), rgba(21, 168, 107, .10));
  transform: rotate(3deg);
}

.showcase-window {
  overflow: hidden;
  border: 1px solid rgba(191, 210, 255, .9);
  border-radius: 34px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 30px 90px rgba(15, 30, 61, .16);
}

.showcase-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 18px 20px;
  border-bottom: 1px solid #E6EFFF;
  background: linear-gradient(180deg, #FFFFFF, #F8FBFF);
}

.showcase-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #D8E4F7;
}

.showcase-top span:first-child { background: #FFB4A8; }
.showcase-top span:nth-child(2) { background: #FFD36B; }
.showcase-top span:nth-child(3) { background: #82D6AA; }

.showcase-top strong {
  margin-left: auto;
  color: #3B4C69;
  font-size: 13px;
}

.showcase-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px;
  padding: 18px;
  border: 1px solid #DDE9FF;
  border-radius: 22px;
  background: linear-gradient(135deg, #F4F8FF, #FFFFFF);
}

.status-dot {
  width: 42px;
  height: 42px;
  display: inline-flex;
  flex: 0 0 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 14px 28px rgba(45, 101, 243, .20);
}

.showcase-alert strong,
.showcase-alert small {
  display: block;
}

.showcase-alert small {
  color: var(--muted);
  font-weight: 750;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 22px 22px;
}

.showcase-card {
  position: relative;
  min-height: 122px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid #E0EAFF;
  border-radius: 22px;
  background: #F8FBFF;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.showcase-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -24px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: currentColor;
  opacity: .08;
}

.showcase-card span,
.showcase-card strong {
  display: block;
}

.showcase-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.showcase-card strong {
  margin-top: 8px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.15;
}

.showcase-card:hover {
  transform: translateY(-3px);
  border-color: #BFD2FF;
  box-shadow: var(--shadow-sm);
}

.accent-blue { color: var(--blue); }
.accent-green { color: var(--green); }
.accent-violet { color: #5A63E8; }
.accent-amber { color: var(--amber); }

.showcase-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 22px 22px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--navy), #123A75);
}

.showcase-result span,
.showcase-result strong {
  display: block;
  color: #fff;
}

.showcase-result span {
  color: #CFE0FF;
  font-size: 13px;
  font-weight: 800;
}

.home-path-section {
  padding: 34px 0 76px;
  background: linear-gradient(180deg, #F7FBFF, #FFFFFF);
}

.path-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 28px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: #FFFFFF;
  box-shadow: var(--shadow);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.path-item {
  min-height: 180px;
  padding: 20px;
  border: 1px solid #E0EAFF;
  border-radius: 24px;
  background: linear-gradient(180deg, #FFFFFF, #F8FBFF);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.path-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #EAF1FF;
  color: var(--blue);
  font-weight: 950;
}

.path-item strong,
.path-item em {
  display: block;
}

.path-item strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.15;
}

.path-item em {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
}

.path-item:hover {
  transform: translateY(-4px);
  border-color: #BFD2FF;
  box-shadow: var(--shadow-sm);
}

.section-split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section-split-head > div {
  max-width: 780px;
}

.premium-card-grid .card {
  position: relative;
  overflow: hidden;
}

.premium-card-grid .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  opacity: .86;
}

.premium-card-grid .tool-card,
.premium-card-grid .service-card,
.premium-card-grid .blog-card {
  min-height: 100%;
}

.premium-card-grid .btn-row {
  margin-top: auto;
}

.premium-strip {
  margin-top: 32px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 20%, rgba(45, 101, 243, .08), transparent 22rem),
    #FFFFFF;
}

.premium-strip h3 {
  max-width: 760px;
  margin-top: 10px;
  margin-bottom: 0;
  font-size: clamp(21px, 2vw, 28px);
}

.trust-section {
  background:
    radial-gradient(circle at left top, rgba(45, 101, 243, .10), transparent 32rem),
    #FFFFFF;
}

.trust-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 42px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.trust-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, #FFFFFF, #F8FBFF);
  box-shadow: var(--shadow-xs);
}

.trust-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: #E9FAF3;
  color: var(--green);
  font-weight: 950;
}

.trust-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.trust-card p {
  margin: 0;
  font-size: 14px;
}

.custom-tool-cta {
  padding: 58px;
}

.custom-tool-cta .btn-row,
.final-home-cta .btn-row {
  margin-top: 26px;
}

.light-badge {
  background: rgba(255, 255, 255, .14);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, .22);
}

.home-faq-section {
  background: linear-gradient(180deg, #FFFFFF, #F6FAFF);
}

.faq-q span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: #EAF1FF;
  color: var(--blue);
}

.faq-item.open .faq-q span {
  background: var(--blue);
  color: #FFFFFF;
}

.final-home-cta {
  padding-top: 30px;
}

.center-row {
  justify-content: center;
}

@media (max-width: 980px) {
  .premium-hero-grid,
  .path-card,
  .trust-layout {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    max-width: 640px;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .path-item {
    min-height: auto;
  }

  .section-split-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-split-head .btn {
    width: auto;
  }
}

@media (max-width: 640px) {
  .hero-premium {
    min-height: 0;
    padding: 66px 0 54px;
  }

  .hero-action-panel {
    padding: 14px;
    border-radius: 22px;
  }

  .hero-proof-grid,
  .showcase-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .proof-item {
    padding: 16px;
  }

  .proof-item strong {
    font-size: 28px;
  }

  .showcase-window {
    border-radius: 26px;
  }

  .showcase-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .path-card,
  .custom-tool-cta {
    padding: 22px;
    border-radius: 24px;
  }

  .section-split-head .btn {
    width: 100%;
  }

  .premium-strip h3 {
    font-size: 21px;
  }
}

/*
  Phase 3B - Homepage Simplification
  Goal: reduce visible text density and make the homepage feel cleaner, faster, and more premium.
  Scope: homepage-specific classes only; no tool logic, form logic, SEO files, or URL changes.
*/
.hero-simplified {
  min-height: auto;
  padding: 92px 0 76px;
}

.hero-simplified .premium-hero-grid {
  grid-template-columns: minmax(0, .98fr) minmax(340px, .72fr);
  gap: 56px;
}

.hero-simplified .hero-copy {
  max-width: 760px;
}

.hero-simplified h1 {
  max-width: 720px;
  margin-top: 18px;
  margin-bottom: 20px;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: .98;
}

.hero-simplified .hero-lead {
  max-width: 640px;
  margin-bottom: 24px;
  color: #4D5F7A;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
}

.clean-action-panel {
  max-width: 650px;
  padding: 18px;
}

.clean-action-panel .micro-copy {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 13px;
}

.compact-showcase .showcase-window {
  padding: 24px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 16px;
}

.quick-stats div {
  padding: 16px 10px;
  border: 1px solid rgba(217, 230, 251, .9);
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFFFF, #F7FAFF);
  text-align: center;
}

.quick-stats strong,
.quick-stats span {
  display: block;
}

.quick-stats strong {
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
}

.quick-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.compact-section {
  padding: 58px 0;
}

.compact-head {
  margin-bottom: 24px;
}

.compact-head h2 {
  margin-bottom: 0;
}

.compact-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.compact-path {
  min-height: 0;
  padding: 24px;
}

.compact-path span {
  margin-bottom: 14px;
}

.compact-path strong {
  font-size: 20px;
}

.compact-path em {
  max-width: 250px;
  line-height: 1.45;
}

.compact-card-grid .card {
  padding: 22px;
  border-radius: 22px;
}

.home-tools-section .compact-card-grid .card p,
.home-tools-section .compact-card-grid .card .meta,
.service-preview-section .compact-card-grid .card p,
.service-preview-section .compact-card-grid .card .meta,
.home-guides-section .compact-card-grid .card p,
.home-guides-section .compact-card-grid .card .meta {
  display: none;
}

.home-tools-section .compact-card-grid .card h3,
.service-preview-section .compact-card-grid .card h3,
.home-guides-section .compact-card-grid .card h3 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.18;
}

.home-tools-section .compact-card-grid .card .btn-row,
.service-preview-section .compact-card-grid .card .btn-row,
.home-guides-section .compact-card-grid .card .btn-row {
  margin-top: 22px;
}

.home-tools-section .compact-card-grid .card .btn.secondary,
.home-guides-section .compact-card-grid .card .btn.secondary {
  display: none;
}

.home-tools-section .compact-card-grid .card .btn,
.service-preview-section .compact-card-grid .card .btn,
.home-guides-section .compact-card-grid .card .btn {
  min-height: 42px;
  padding: 10px 16px;
}

.simplified-trust {
  grid-template-columns: .85fr 1.15fr;
  gap: 32px;
}

.compact-trust-grid .trust-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 18px;
}

.compact-trust-grid .trust-card span {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-bottom: 0;
}

.compact-trust-grid .trust-card strong {
  margin-bottom: 0;
  font-size: 16px;
}

.compact-trust-grid .trust-card p {
  display: none;
}

.compact-dark-cta {
  padding: 44px;
}

.compact-dark-cta h2 {
  max-width: 820px;
}

.compact-dark-cta .lead {
  display: none;
}

.compact-pill-list {
  margin-top: 18px;
  margin-bottom: 22px;
}

.compact-faq .faq-item {
  border-radius: 18px;
}

.compact-faq .faq-q {
  padding: 18px 20px;
}

.compact-faq .faq-a p {
  margin-bottom: 0;
}

.final-home-cta .compact-dark-cta h2 {
  margin-inline: auto;
  max-width: 780px;
}

@media (max-width: 980px) {
  .hero-simplified .premium-hero-grid,
  .simplified-trust,
  .compact-path-grid {
    grid-template-columns: 1fr;
  }

  .hero-simplified {
    padding: 76px 0 58px;
  }

  .compact-section {
    padding: 48px 0;
  }
}

@media (max-width: 640px) {
  .hero-simplified {
    padding: 54px 0 42px;
  }

  .hero-simplified h1 {
    font-size: clamp(36px, 12vw, 48px);
  }

  .hero-simplified .hero-lead {
    font-size: 17px;
  }

  .clean-action-panel .btn-row,
  .final-home-cta .btn-row,
  .custom-tool-cta .btn-row {
    flex-direction: column;
  }

  .quick-stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  .quick-stats div {
    padding: 13px 6px;
    border-radius: 15px;
  }

  .quick-stats strong {
    font-size: 22px;
  }

  .quick-stats span {
    font-size: 10px;
  }

  .compact-section {
    padding: 38px 0;
  }

  .compact-head {
    margin-bottom: 18px;
  }

  .compact-path,
  .compact-card-grid .card,
  .compact-dark-cta {
    padding: 20px;
  }

  .compact-card-grid .card .card-top {
    margin-bottom: 16px;
  }

  .home-tools-section .compact-card-grid .card h3,
  .service-preview-section .compact-card-grid .card h3,
  .home-guides-section .compact-card-grid .card h3 {
    font-size: 18px;
  }
}

/*
  Phase 3C - Premium Minimal Homepage Rebuild
  Goal: reduce homepage text density further and create a cleaner SaaS-style first impression.
  Scope: homepage-specific classes only; existing dynamic IDs homeTools, homeServices and homeBlogs are preserved.
*/
.minimal-home {
  overflow: hidden;
  background: #F7FAFF;
}

.minimal-hero {
  position: relative;
  isolation: isolate;
  padding: 104px 0 72px;
  background:
    radial-gradient(circle at 18% 20%, rgba(45, 101, 243, .12), transparent 28rem),
    radial-gradient(circle at 85% 15%, rgba(21, 168, 107, .12), transparent 26rem),
    linear-gradient(180deg, #FFFFFF 0%, #F6FAFF 100%);
}

.minimal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(45, 101, 243, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 101, 243, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

.minimal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .72fr);
  align-items: center;
  gap: 70px;
}

.minimal-hero-copy {
  max-width: 760px;
}

.minimal-hero h1 {
  max-width: 780px;
  margin: 18px 0 18px;
  color: #07152E;
  font-size: clamp(46px, 6.4vw, 86px);
  line-height: .94;
  letter-spacing: -.065em;
}

.minimal-hero .hero-lead {
  max-width: 620px;
  margin-bottom: 0;
  color: #475A78;
  font-size: clamp(18px, 1.75vw, 22px);
  line-height: 1.55;
}

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

.minimal-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.minimal-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(191, 210, 255, .92);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #60708D;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 10px 26px rgba(15, 30, 61, .06);
}

.minimal-proof strong {
  color: var(--blue);
  font-size: 16px;
}

.minimal-tool-panel {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(191, 210, 255, .92);
  border-radius: 34px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 36px 90px rgba(15, 30, 61, .16);
  backdrop-filter: blur(14px);
}

.minimal-tool-panel::before {
  content: "";
  position: absolute;
  inset: 28px -20px -20px 46px;
  z-index: -1;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(45, 101, 243, .16), rgba(21, 168, 107, .12));
  transform: rotate(3deg);
}

.panel-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #EAF1FF;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.panel-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.panel-list a {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #E0EAFF;
  border-radius: 20px;
  background: linear-gradient(180deg, #FFFFFF, #F8FBFF);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.panel-list a:hover {
  transform: translateY(-3px);
  border-color: #BFD2FF;
  box-shadow: var(--shadow-sm);
}

.panel-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 16px;
  background: #F0F6FF;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.panel-list strong {
  color: var(--navy);
  font-size: 17px;
  line-height: 1.2;
}

.panel-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.panel-footer span {
  padding: 8px 10px;
  border-radius: 999px;
  background: #F0FDF6;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.minimal-category-strip {
  padding: 20px 0;
  background: #FFFFFF;
  border-top: 1px solid #EAF1FF;
  border-bottom: 1px solid #EAF1FF;
}

.category-pill-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pill-row a {
  padding: 11px 15px;
  border: 1px solid #DDE9FF;
  border-radius: 999px;
  background: #FFFFFF;
  color: #40536F;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(15, 30, 61, .04);
}

.category-pill-row a:hover {
  color: var(--blue);
  border-color: #BFD2FF;
  background: #F7FAFF;
}

.minimal-section {
  padding: 64px 0;
  background: #FFFFFF;
}

.minimal-tools,
.minimal-guides {
  background: #F7FAFF;
}

.minimal-section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 22px;
  margin-bottom: 26px;
}

.minimal-section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -.04em;
}

.minimal-card-grid .card {
  min-height: 0;
  padding: 22px;
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: 0 16px 42px rgba(15, 30, 61, .07);
}

.minimal-card-grid .card::before {
  height: 3px;
  opacity: .72;
}

.minimal-card-grid .card p,
.minimal-card-grid .card .meta,
.minimal-card-grid .card .btn.secondary {
  display: none !important;
}

.minimal-card-grid .card h3 {
  min-height: 48px;
  margin-bottom: 0;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.minimal-card-grid .card .card-top {
  margin-bottom: 18px;
}

.minimal-card-grid .card .badge {
  font-size: 10px;
}

.minimal-card-grid .card .btn-row {
  margin-top: 22px;
}

.minimal-card-grid .card .btn {
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
}

.minimal-blog-grid .card h3 {
  min-height: 70px;
  font-size: 17px;
}

.minimal-bento {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid #DDE9FF;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(45, 101, 243, .10), transparent 24rem),
    linear-gradient(135deg, #FFFFFF, #F7FAFF);
  box-shadow: var(--shadow-sm);
}

.bento-lead {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  min-height: 360px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--navy), #123A75);
}

.bento-lead .eyebrow {
  color: #BFD2FF;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
}

.bento-lead h2 {
  max-width: 520px;
  margin: 16px 0 24px;
  color: #FFFFFF;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.02;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bento-grid article {
  min-height: 170px;
  padding: 24px;
  border: 1px solid #E0EAFF;
  border-radius: 26px;
  background: #FFFFFF;
  box-shadow: var(--shadow-xs);
}

.bento-grid strong,
.bento-grid span {
  display: block;
}

.bento-grid strong {
  color: var(--navy);
  font-size: 22px;
  letter-spacing: -.025em;
}

.bento-grid span {
  max-width: 220px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

.minimal-final {
  padding-top: 42px;
}

.minimal-final-card {
  padding: 54px 32px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 85% 20%, rgba(21, 168, 107, .24), transparent 24rem),
    linear-gradient(135deg, #07152E, #123A75);
  text-align: center;
  box-shadow: 0 24px 70px rgba(15, 30, 61, .18);
}

.minimal-final-card .eyebrow {
  color: #BFD2FF;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
}

.minimal-final-card h2 {
  max-width: 760px;
  margin: 16px auto 0;
  color: #FFFFFF;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05;
}

@media (max-width: 980px) {
  .minimal-hero {
    padding: 78px 0 58px;
  }

  .minimal-hero-grid,
  .minimal-bento {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .minimal-tool-panel {
    max-width: 620px;
  }

  .bento-lead {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .minimal-hero {
    padding: 56px 0 40px;
  }

  .minimal-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .minimal-hero .hero-lead {
    font-size: 17px;
  }

  .minimal-actions,
  .minimal-actions .btn,
  .minimal-section-head,
  .minimal-section-head .btn {
    width: 100%;
  }

  .minimal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .minimal-proof {
    display: grid;
    grid-template-columns: 1fr;
  }

  .minimal-tool-panel {
    padding: 18px;
    border-radius: 26px;
  }

  .minimal-tool-panel::before {
    display: none;
  }

  .panel-list a {
    grid-template-columns: 70px 1fr;
  }

  .panel-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panel-footer span {
    padding-inline: 6px;
    text-align: center;
    font-size: 10px;
  }

  .minimal-category-strip {
    padding: 14px 0;
  }

  .category-pill-row {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .category-pill-row::-webkit-scrollbar {
    display: none;
  }

  .category-pill-row a {
    flex: 0 0 auto;
  }

  .minimal-section {
    padding: 42px 0;
  }

  .minimal-section-head {
    grid-template-columns: 1fr;
    align-items: start;
    margin-bottom: 20px;
  }

  .minimal-section-head h2 {
    font-size: 30px;
  }

  .minimal-card-grid .card {
    padding: 20px;
  }

  .minimal-card-grid .card h3,
  .minimal-blog-grid .card h3 {
    min-height: 0;
  }

  .minimal-bento {
    padding: 16px;
    border-radius: 26px;
  }

  .bento-lead {
    padding: 24px;
    border-radius: 22px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid article {
    min-height: 0;
  }

  .minimal-final-card {
    padding: 36px 20px;
    border-radius: 26px;
  }
}


/*
  Phase 3D - Approved Homepage Correction
  Goal: professional, balanced, less text-heavy homepage without touching JS/tool logic.
  Scope: homepage-specific classes only.
*/
.home-pro {
  background:
    radial-gradient(circle at 92% 4%, rgba(45, 101, 243, .08), transparent 26rem),
    linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 54%, #F6FAFF 100%);
  overflow: hidden;
}

.home-hero {
  padding: 88px 0 52px;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .78fr);
  align-items: center;
  gap: 56px;
}

.home-hero-copy {
  max-width: 720px;
}

.home-badge,
.section-kicker,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  width: auto;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.home-badge,
.section-kicker {
  padding: 8px 12px;
  color: var(--blue);
  background: #EAF1FF;
  border: 1px solid #D7E5FF;
}

.section-kicker.light {
  color: #BFD2FF;
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .18);
}

.home-hero h1 {
  max-width: 720px;
  margin: 20px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.065em;
}

.home-lead {
  max-width: 610px;
  margin: 0 0 26px;
  color: #51617D;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.home-trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #5C6D89;
  font-size: 13px;
  font-weight: 800;
}

.home-trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.home-trust-line span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(21, 168, 107, .12);
}

.home-popular-panel {
  position: relative;
  padding: 24px;
  border: 1px solid #D7E5FF;
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 24px 70px rgba(15, 30, 61, .12);
}

.home-popular-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, var(--blue), #20B486);
}

.home-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.home-panel-head strong {
  font-size: 18px;
  letter-spacing: -.02em;
}

.panel-kicker {
  color: var(--green);
}

.home-panel-list {
  display: grid;
  gap: 10px;
}

.home-panel-list a {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #E2ECFF;
  border-radius: 18px;
  background: #F8FBFF;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.home-panel-list a:hover {
  color: var(--navy);
  transform: translateY(-2px);
  border-color: #BFD2FF;
  background: #FFFFFF;
  box-shadow: var(--shadow-xs);
}

.home-panel-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 14px;
  background: #EAF1FF;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.home-panel-list strong {
  font-size: 15px;
  letter-spacing: -.01em;
}

.panel-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 900;
}

.home-quick-actions {
  padding: 0 0 34px;
}

.quick-actions-box {
  display: grid;
  grid-template-columns: minmax(220px, .35fr) 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid #DDE9FF;
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: var(--shadow-xs);
}

.quick-actions-title span,
.quick-actions-title strong {
  display: block;
}

.quick-actions-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quick-actions-title strong {
  margin-top: 2px;
  color: var(--navy);
  font-size: 19px;
  letter-spacing: -.02em;
}

.quick-actions-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-actions-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #DDE9FF;
  border-radius: 999px;
  background: #F8FBFF;
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

.quick-actions-row a:hover {
  color: var(--blue);
  border-color: #BFD2FF;
  background: #FFFFFF;
}

.home-section {
  padding: 58px 0;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 26px;
}

.home-section-head h2 {
  max-width: 720px;
  margin: 12px 0 8px;
  font-size: clamp(30px, 3.6vw, 48px);
  letter-spacing: -.045em;
}

.home-section-head p {
  max-width: 650px;
  margin: 0;
  color: #5E6F8B;
  font-size: 16px;
  line-height: 1.55;
}

.section-link {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.home-card-grid {
  gap: 18px;
}

.home-card-grid .card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 22px;
  border-color: #DDE9FF;
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 14px 34px rgba(15, 30, 61, .06);
}

.home-card-grid .card::before {
  height: 3px;
  opacity: .75;
}

.home-card-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 54px rgba(15, 30, 61, .10);
}

.home-card-grid .card .card-top {
  margin-bottom: 18px;
}

.home-card-grid .card h3 {
  margin: 0 0 10px;
  min-height: auto;
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: -.025em;
}

.home-card-grid .card p {
  display: -webkit-box;
  margin: 0;
  color: #63728D;
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-card-grid .card .meta {
  display: none !important;
}

.home-card-grid .card .btn-row {
  margin-top: auto;
  padding-top: 18px;
  gap: 10px;
}

.home-card-grid .card .btn,
.home-card-grid .card .btn.primary,
.home-card-grid .card .btn.green {
  justify-content: flex-start;
  min-height: auto;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  box-shadow: none;
  font-size: 14px;
  font-weight: 900;
}

.home-card-grid .card .btn.primary::after,
.home-card-grid .card .btn.green::after {
  content: " →";
}

.home-card-grid .card .btn:hover {
  transform: none;
  box-shadow: none;
  color: var(--blue-2);
}

.home-tool-grid .tool-card .btn.secondary,
.home-blog-grid .blog-card .btn.secondary {
  display: none !important;
}

.home-service-grid .service-card:nth-child(n+5),
.home-blog-grid .blog-card:nth-child(n+4) {
  display: none !important;
}

.home-service-grid .service-card {
  min-height: 230px;
}

.home-blog-grid .blog-card {
  min-height: 220px;
}

.home-blog-grid .blog-card .badge {
  align-self: flex-start;
  margin-bottom: 14px;
}

.home-blog-grid .blog-card h3[style] {
  margin-top: 0 !important;
}

.home-why {
  background: linear-gradient(180deg, #FFFFFF, #F6FAFF);
}

.compact-head {
  max-width: 800px;
}

.home-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-trust-grid article {
  padding: 22px;
  border: 1px solid #DDE9FF;
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: var(--shadow-xs);
}

.home-trust-grid span,
.home-trust-grid strong,
.home-trust-grid p {
  display: block;
}

.home-trust-grid span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #EAF1FF;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.home-trust-grid strong {
  margin: 16px 0 8px;
  color: var(--navy);
  font-size: 20px;
  letter-spacing: -.025em;
}

.home-trust-grid p {
  margin: 0;
  color: #63728D;
  font-size: 14px;
  line-height: 1.55;
}

.home-final-cta {
  padding: 54px 0 76px;
}

.home-final-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 10%, rgba(21, 168, 107, .22), transparent 24rem),
    linear-gradient(135deg, #07152E, #123A75);
  box-shadow: 0 24px 70px rgba(15, 30, 61, .18);
}

.home-final-card h2 {
  max-width: 720px;
  margin: 14px 0 8px;
  color: #FFFFFF;
  font-size: clamp(28px, 3vw, 44px);
}

.home-final-card p {
  max-width: 640px;
  margin: 0;
  color: #C7D7F5;
}

.home-final-card .btn {
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .home-popular-panel {
    max-width: 680px;
  }

  .quick-actions-box,
  .quick-actions-row,
  .home-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-actions-title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .home-hero {
    padding: 58px 0 36px;
  }

  .home-hero h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .home-hero-actions,
  .home-hero-actions .btn {
    width: 100%;
  }

  .home-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-section {
    padding: 42px 0;
  }

  .home-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .section-link {
    white-space: normal;
  }

  .home-card-grid .card {
    min-height: 0;
  }

  .home-final-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .home-panel-list a {
    grid-template-columns: 48px 1fr;
  }

  .quick-actions-box,
  .quick-actions-row,
  .home-trust-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions-row a {
    justify-content: flex-start;
    min-height: 42px;
  }

  .home-card-grid {
    gap: 14px;
  }

  .home-card-grid .card {
    padding: 20px;
    border-radius: 20px;
  }

  .home-trust-line {
    display: grid;
    gap: 8px;
  }
}
/* End Phase 3D */


/* Phase 4: header, footer and global UX polish */
.top-contact-bar {
  background: #071A3D;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.top-contact-note {
  color: #DCE8FF;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .01em;
  white-space: nowrap;
}

.top-contact-right {
  gap: 10px;
}

.top-contact-link {
  border-radius: 999px;
  padding: 6px 8px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.top-contact-link:hover {
  background: rgba(255, 255, 255, .08);
  text-decoration: none;
}

.site-header {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 28px rgba(15, 30, 61, .07);
}

.nav-wrap {
  min-height: 72px;
}

.brand-copy {
  min-width: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.nav-links {
  gap: 8px;
  background: #F7FAFF;
  border: 1px solid #E2ECFF;
  border-radius: 999px;
  padding: 6px;
}

.nav-links a {
  border-radius: 999px;
  padding: 10px 13px;
  color: #31476E;
  font-size: 14px;
  line-height: 1;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: #FFFFFF;
  color: var(--blue);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
}

.header-actions .btn.header-cta {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 12px 24px rgba(45, 101, 243, .20);
}

.header-actions .btn.header-cta:hover {
  color: #fff;
}

.menu-btn {
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 12px;
}

.menu-btn-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.menu-btn-lines span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-wrap.open .menu-btn-lines span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-wrap.open .menu-btn-lines span:nth-child(2) {
  opacity: 0;
}

.nav-wrap.open .menu-btn-lines span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.menu-btn-lines span {
  transition: transform var(--transition), opacity var(--transition);
}

.site-footer {
  background:
    radial-gradient(circle at 82% 0%, rgba(45, 101, 243, .18), transparent 26rem),
    linear-gradient(180deg, #071A3D 0%, #051127 100%);
  padding: 64px 0 26px;
}

.footer-grid {
  grid-template-columns: 1.55fr .95fr .95fr .95fr;
  gap: 34px;
}

.footer-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  margin: 0 0 16px !important;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand .brand-tag {
  color: #BFD2FF;
}

.footer-about {
  max-width: 440px;
  margin: 0 0 18px;
  color: #C7D7F5;
}

.footer-contact-list {
  display: grid;
  gap: 8px;
}

.footer-contact-list a {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
}

.footer-links a {
  width: fit-content;
  line-height: 1.35;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

:focus-visible {
  outline: 3px solid rgba(45, 101, 243, .34);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .nav-links a {
    padding-inline: 10px;
  }
}

@media (max-width: 980px) {
  .top-contact-note {
    display: none;
  }

  .top-contact-wrap {
    justify-content: center;
  }

  .nav-links {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 8px 0 0;
    box-shadow: none;
  }

  .nav-wrap.open .nav-links,
  .nav-wrap.open .header-actions {
    background: #FFFFFF;
    border: 1px solid #E2ECFF;
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
  }

  .nav-wrap.open .nav-links a {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .nav-wrap.open .nav-links a:hover,
  .nav-wrap.open .nav-links a.active {
    background: #F3F7FF;
    box-shadow: none;
  }

  .nav-wrap.open .header-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .top-contact-right {
    width: 100%;
    justify-content: space-between;
  }

  .top-contact-link {
    font-size: 12px;
    padding-inline: 6px;
  }

  .top-contact-link[href^="mailto"] span:last-child {
    display: none;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tag {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-btn-text {
    display: none;
  }

  .footer-contact-list a {
    width: 100%;
    justify-content: center;
  }
}

/* Phase 5 - Tools page UI/UX polish */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tools-page {
  background:
    radial-gradient(circle at 92% 2%, rgba(45, 101, 243, .10), transparent 30rem),
    linear-gradient(180deg, #F7FAFF 0%, #FFFFFF 36%, #F7FAFF 100%);
}

.tools-hero {
  padding: 76px 0 62px;
  background:
    linear-gradient(135deg, rgba(15, 30, 61, .98), rgba(23, 59, 120, .92)),
    radial-gradient(circle at top right, rgba(110, 161, 255, .34), transparent 26rem);
  color: #fff;
  overflow: hidden;
}

.tools-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, .72fr);
  gap: 44px;
  align-items: center;
}

.tools-hero h1 {
  color: #fff;
  max-width: 760px;
  font-size: clamp(36px, 5vw, 60px);
}

.tools-hero p {
  color: #D7E4FF;
  font-size: 18px;
  max-width: 680px;
}

.tools-hero .eyebrow {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .20);
  color: #DCE8FF;
  box-shadow: none;
  margin-bottom: 18px;
}

.tools-hero .btn.secondary {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
}

.tools-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tools-hero-trust span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: #E9F1FF;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.tools-hero-panel {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .50);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .18);
}

.tools-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.tools-panel-head a {
  color: var(--blue);
  font-weight: 900;
  font-size: 13px;
}

.tools-panel-list {
  display: grid;
  gap: 10px;
}

.tools-panel-list a {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-2);
  border-radius: 18px;
  background: #fff;
  color: var(--navy);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.tools-panel-list a:hover {
  transform: translateY(-2px);
  border-color: #BFD2FF;
  box-shadow: var(--shadow-sm);
}

.tools-panel-list span,
.tool-code,
.quick-tool-link span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #EAF1FF;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
}

.tools-search-section {
  position: relative;
  z-index: 4;
}

.tools-directory-search {
  margin-top: -34px;
  padding: 18px;
}

.tools-directory-search .search-input {
  min-height: 54px;
  padding-inline: 20px;
  font-size: 15px;
}

.tools-directory-search .filter-tabs {
  align-items: center;
  margin-top: 14px;
}

.tools-directory-search .filter-tab {
  padding: 9px 13px;
  font-size: 13px;
}

.clean-section-head {
  align-items: flex-end;
  margin-bottom: 26px;
}

.clean-section-head .lead {
  max-width: 650px;
}

.section-link {
  color: var(--blue);
  font-weight: 950;
  white-space: nowrap;
}

.tools-quick-actions {
  padding-top: 54px;
}

.tools-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quick-tool-link,
.popular-tool-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.quick-tool-link:hover,
.popular-tool-card:hover {
  transform: translateY(-3px);
  border-color: #BFD2FF;
  box-shadow: var(--shadow);
}

.quick-tool-link strong,
.popular-tool-card strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.2;
}

.quick-tool-link em,
.popular-tool-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
  line-height: 1.45;
}

.popular-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.popular-tool-card b {
  color: var(--blue);
  font-size: 14px;
  margin-top: 4px;
}

.tools-directory-grid {
  align-items: stretch;
}

.tools-page #allToolsGrid .tool-card {
  display: flex;
  flex-direction: column;
  min-height: 295px;
  padding: 22px;
}

.tools-page #allToolsGrid .tool-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.tools-page #allToolsGrid .tool-card p {
  margin-bottom: 14px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tools-page #allToolsGrid .tool-card .meta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.tools-page #allToolsGrid .tool-card .btn-row {
  gap: 12px;
  margin-top: 14px;
}

.tools-page #allToolsGrid .tool-card .btn {
  min-height: auto;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  box-shadow: none;
  font-size: 14px;
  font-weight: 950;
}

.tools-page #allToolsGrid .tool-card .btn.primary::after,
.tools-page #allToolsGrid .tool-card .btn.green::after {
  content: " →";
}

.tools-page #allToolsGrid .tool-card .btn.secondary {
  color: var(--muted);
}

.tools-page #allToolsGrid .tool-card .btn:hover {
  transform: none;
  box-shadow: none;
  color: var(--blue-2);
}

.tools-support-section {
  padding-top: 44px;
}

.tools-support-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(45, 101, 243, .16), transparent 28rem),
    var(--navy);
  color: #fff;
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow-lg);
}

.tools-support-card h2 {
  color: #fff;
  margin-bottom: 10px;
}

.tools-support-card p {
  color: #CFE0FF;
  max-width: 650px;
  margin-bottom: 0;
}

.tools-support-card .eyebrow {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .18);
  color: #DCE8FF;
  box-shadow: none;
}

.tools-support-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tools-support-actions .btn.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .32);
}

@media (max-width: 1024px) {
  .tools-hero-grid {
    grid-template-columns: 1fr;
  }

  .tools-action-grid,
  .popular-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .tools-hero {
    padding: 54px 0 54px;
  }

  .tools-hero p {
    font-size: 16px;
  }

  .tools-hero-panel,
  .tools-support-card {
    border-radius: 24px;
    padding: 20px;
  }

  .tools-hero .hero-actions,
  .tools-support-actions {
    width: 100%;
  }

  .tools-hero .hero-actions .btn,
  .tools-support-actions .btn {
    width: 100%;
  }

  .tools-action-grid,
  .popular-tool-grid,
  .tools-support-card {
    grid-template-columns: 1fr;
  }

  .clean-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-link {
    margin-top: -4px;
  }

  .tools-page #allToolsGrid .tool-card {
    min-height: auto;
  }
}

/* =========================================================
   Phase 5C: Tools page contrast fix + subtle card depth
   Scope: Tools listing page visual refinement only. No tool logic changes.
   ========================================================= */
.tools-page .tools-hero-panel {
  color: var(--text);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .92) inset,
    0 28px 70px rgba(0, 0, 0, .18),
    0 10px 24px rgba(15, 30, 61, .10);
}

.tools-page .tools-panel-head {
  color: var(--navy);
}

.tools-page .tools-panel-head .mini-badge {
  background: #EAF1FF;
  color: #1849B8;
  border: 1px solid #CFE0FF;
  box-shadow: 0 8px 18px rgba(45, 101, 243, .10);
}

.tools-page .tools-panel-list strong {
  color: var(--navy);
}

.tools-page .tools-panel-list a,
.tools-page .quick-tool-link,
.tools-page .popular-tool-card,
.tools-page #allToolsGrid .tool-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(248, 251, 255, .98) 100%);
  border-color: rgba(191, 210, 255, .82);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .96) inset,
    0 14px 30px rgba(15, 30, 61, .08),
    0 2px 7px rgba(15, 30, 61, .05);
  transform: translateY(0);
  will-change: transform;
}

.tools-page .tools-panel-list a::before,
.tools-page .quick-tool-link::before,
.tools-page .popular-tool-card::before,
.tools-page #allToolsGrid .tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(45, 101, 243, .88), rgba(87, 192, 255, .62));
  opacity: .72;
  pointer-events: none;
}

.tools-page .tools-panel-list a:hover,
.tools-page .quick-tool-link:hover,
.tools-page .popular-tool-card:hover,
.tools-page #allToolsGrid .tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 101, 243, .34);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .98) inset,
    0 22px 46px rgba(15, 30, 61, .13),
    0 8px 18px rgba(45, 101, 243, .08);
}

.tools-page .tool-code,
.tools-page .quick-tool-link span,
.tools-page .tools-panel-list span {
  background: linear-gradient(180deg, #EEF4FF, #E4ECFF);
  color: #1D4ED8;
  border: 1px solid #D4E2FF;
  box-shadow: 0 8px 18px rgba(45, 101, 243, .10);
}

.tools-page .quick-tool-link strong,
.tools-page .popular-tool-card strong,
.tools-page #allToolsGrid .tool-card h3 {
  color: var(--navy);
}

.tools-page .quick-tool-link em,
.tools-page .popular-tool-card em,
.tools-page #allToolsGrid .tool-card p {
  color: #4F5F78;
}

.tools-page .popular-tool-card b,
.tools-page #allToolsGrid .tool-card .btn {
  color: #1D4ED8;
}

.tools-page .popular-tool-card b:hover,
.tools-page #allToolsGrid .tool-card .btn:hover,
.tools-page .section-link:hover,
.tools-page .tools-panel-head a:hover {
  color: #123C98;
}

.tools-page .tools-directory-search .filter-tab {
  background: #FFFFFF;
  color: #30405A;
  border-color: #D9E6FB;
}

.tools-page .tools-directory-search .filter-tab:hover {
  background: #F2F6FF;
  color: #1D4ED8;
  border-color: #BFD2FF;
}

.tools-page .tools-directory-search .filter-tab.active {
  background: #1D4ED8;
  border-color: #1D4ED8;
  color: #FFFFFF;
  box-shadow: 0 10px 22px rgba(29, 78, 216, .18);
}

@media (max-width: 720px) {
  .tools-page .tools-panel-list a:hover,
  .tools-page .quick-tool-link:hover,
  .tools-page .popular-tool-card:hover,
  .tools-page #allToolsGrid .tool-card:hover {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tools-page .tools-panel-list a,
  .tools-page .quick-tool-link,
  .tools-page .popular-tool-card,
  .tools-page #allToolsGrid .tool-card {
    will-change: auto;
  }

  .tools-page .tools-panel-list a:hover,
  .tools-page .quick-tool-link:hover,
  .tools-page .popular-tool-card:hover,
  .tools-page #allToolsGrid .tool-card:hover {
    transform: none;
  }
}

/* ==========================================================
   Phase 6-B: GST Calculator reusable tool-page template
   Scope: GST calculator layout only. IDs, calculation logic,
   PDF function names and URLs are preserved.
   ========================================================== */
.tool-page .tool-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 54px;
  background:
    radial-gradient(circle at 88% 8%, rgba(45, 101, 243, .18), transparent 30%),
    linear-gradient(180deg, #FFFFFF 0%, #F6FAFF 100%);
}

.tool-page .tool-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 55%;
  background: radial-gradient(circle, rgba(21, 168, 107, .09), transparent 62%);
  pointer-events: none;
}

.tool-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .72fr);
  align-items: center;
  gap: 42px;
}

.tool-hero-copy {
  max-width: 760px;
}

.tool-hero-copy h1 {
  margin: 12px 0 14px;
  max-width: 760px;
}

.tool-hero-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.tool-hero-actions,
.tool-primary-actions,
.tool-result-actions,
.tool-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tool-hero-actions {
  margin-top: 24px;
}

.tool-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tool-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid #D8E5FF;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: #405274;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 30, 61, .05);
}

.tool-trust-row span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(21, 168, 107, .14);
}

.tool-hero-panel,
.tool-form-panel,
.tool-result-panel,
.tool-support-card,
.related-tool-card {
  border: 1px solid rgba(190, 210, 246, .86);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.96));
  border-radius: 30px;
  box-shadow: 0 18px 48px rgba(15, 30, 61, .10), 0 2px 0 rgba(255,255,255,.80) inset;
}

.tool-hero-panel {
  padding: 22px;
  transform: perspective(900px) rotateX(1deg) rotateY(-2deg);
}

.tool-panel-top,
.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tool-panel-top {
  align-items: center;
  margin-bottom: 16px;
}

.tool-panel-top strong {
  color: var(--navy);
  font-size: 20px;
}

.tool-panel-label,
.section-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid #D8E5FF;
  border-radius: 999px;
  background: #EEF4FF;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  padding: 8px 10px;
  text-transform: uppercase;
}

.tool-mini-result {
  display: grid;
  gap: 12px;
}

.tool-mini-result div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #E2EBFA;
  border-radius: 18px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(15, 30, 61, .055);
}

.tool-mini-result span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.tool-mini-result strong {
  color: var(--navy);
  font-size: 14px;
  text-align: right;
}

.tool-work-section {
  background: #F7FAFF;
}

.tool-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .78fr);
  align-items: start;
  gap: 24px;
}

.tool-form-panel,
.tool-result-panel {
  padding: 24px;
}

.tool-result-panel {
  position: sticky;
  top: 96px;
}

.panel-title-row h2 {
  margin: 10px 0 6px;
  font-size: clamp(26px, 3vw, 36px);
}

.panel-title-row p {
  margin: 0;
  color: var(--muted);
}

.compact-form-section {
  margin: 22px 0;
  background: #FFFFFF;
}

.compact-form-section h3 {
  margin-bottom: 14px;
}

.tool-primary-actions {
  border-top: 1px solid #E3ECFA;
  padding-top: 18px;
}

.tool-result-totals {
  max-width: none;
  margin: 22px 0 16px;
  background: linear-gradient(180deg, #FFFFFF, #F7FBFF);
  border-color: #D9E6FB;
  box-shadow: 0 14px 34px rgba(15, 30, 61, .07);
}

.tool-result-totals .total-line,
.tool-result-totals .total-row {
  align-items: center;
}

.tool-result-totals .total-line span {
  color: #405274;
  font-weight: 750;
}

.tool-result-totals .total-line b {
  color: var(--navy);
  font-size: 16px;
}

.tool-result-totals .total-line.grand {
  margin-top: 8px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), #1D4ED8);
  color: #FFFFFF;
  padding: 12px 14px;
}

.tool-result-totals .total-line.grand span,
.tool-result-totals .total-line.grand b {
  color: #FFFFFF;
}

.tool-result-actions {
  margin-bottom: 16px;
}

.tool-preview-box {
  max-height: 360px;
  border-style: solid;
  background: #FFFFFF;
}

.tool-support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.tool-support-card h2 {
  margin: 10px 0 8px;
}

.tool-support-card p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.clean-section-head {
  margin-bottom: 24px;
}

.clean-section-head h2 {
  margin: 10px 0 8px;
}

.clean-section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
}

.info-step-card {
  min-height: auto;
}

.related-tool-card {
  display: block;
  color: inherit;
  padding: 22px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.related-tool-card:hover {
  transform: translateY(-4px);
  border-color: #BFD2FF;
  box-shadow: 0 22px 54px rgba(15, 30, 61, .13);
}

.related-tool-card span {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #EEF4FF;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.related-tool-card strong {
  display: block;
  color: var(--navy);
  font-size: 19px;
  margin-bottom: 8px;
}

.related-tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tool-note-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(340px, 1fr);
  align-items: start;
  gap: 24px;
}

.tool-warning-box {
  margin: 0;
}

.compact-faq-list .faq-item:first-child {
  border-top: 1px solid var(--border);
}

@media (max-width: 980px) {
  .tool-hero-grid,
  .tool-work-grid,
  .tool-note-layout {
    grid-template-columns: 1fr;
  }

  .tool-hero-panel {
    transform: none;
  }

  .tool-result-panel {
    position: static;
  }

  .tool-support-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .tool-page .tool-hero {
    padding: 52px 0 40px;
  }

  .tool-hero-copy p {
    font-size: 16px;
  }

  .tool-hero-actions,
  .tool-primary-actions,
  .tool-result-actions,
  .tool-support-actions {
    width: 100%;
  }

  .tool-hero-actions .btn,
  .tool-primary-actions .btn,
  .tool-result-actions .btn,
  .tool-support-actions .btn {
    width: 100%;
  }

  .tool-hero-panel,
  .tool-form-panel,
  .tool-result-panel,
  .tool-support-card,
  .related-tool-card {
    border-radius: 22px;
  }

  .tool-hero-panel,
  .tool-form-panel,
  .tool-result-panel,
  .tool-support-card {
    padding: 18px;
  }

  .tool-mini-result div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .tool-mini-result strong {
    text-align: left;
  }
}

/* ==========================================================
   Phase 6-B1: Mobile overflow hotfix for individual tool pages
   Scope: responsive safety only. Tool IDs, formulas, PDF logic,
   URLs and SEO remain untouched.
   ========================================================== */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
}

.site-header,
.top-contact-bar,
.tool-page,
.tool-page .tool-hero,
.tool-page .section {
  max-width: 100%;
  overflow-x: clip;
}

.tool-page *,
.tool-page *::before,
.tool-page *::after {
  min-width: 0;
}

.tool-page img,
.tool-page svg,
.tool-page canvas,
.tool-page iframe {
  max-width: 100%;
}

@media (max-width: 980px) {
  .tool-page .container {
    width: min(100% - 32px, var(--container));
  }

  .tool-hero-grid,
  .tool-work-grid,
  .tool-note-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
  }

  .tool-hero-copy,
  .tool-hero-panel,
  .tool-form-panel,
  .tool-result-panel,
  .tool-support-card,
  .related-tool-card {
    max-width: 100%;
    width: 100%;
  }

  .tool-hero-panel {
    transform: none !important;
  }

  .tool-result-panel {
    position: static;
    top: auto;
  }
}

@media (max-width: 640px) {
  .container,
  .tool-page .container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .top-contact-wrap,
  .nav-wrap {
    max-width: 100%;
    width: 100%;
  }

  .tool-page .tool-hero {
    padding: 42px 0 34px;
  }

  .tool-hero-copy h1,
  .tool-hero-copy p,
  .panel-title-row h2,
  .tool-panel-top strong {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .tool-hero-actions .btn,
  .tool-primary-actions .btn,
  .tool-result-actions .btn,
  .tool-support-actions .btn {
    max-width: 100%;
  }

  .tool-trust-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .tool-trust-row span {
    width: 100%;
    white-space: normal;
  }

  .tool-panel-top,
  .panel-title-row,
  .tool-support-card,
  .tool-mini-result div {
    max-width: 100%;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  input,
  select,
  textarea,
  button {
    max-width: 100%;
  }
}

@media (max-width: 390px) {
  .container,
  .tool-page .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .tool-trust-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================
   Phase 6-B2: Global mobile overflow containment hotfix
   Scope: whole-site responsive safety only. No HTML, SEO,
   URL, form, calculator, PDF or JSON logic changes.
   ========================================================== */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  position: relative;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

*,
*::before,
*::after {
  min-width: 0;
}

body > *,
main,
section,
header,
footer,
.site-header,
.top-contact-bar,
.site-footer,
.tool-page,
.home-page,
.tools-page {
  max-width: 100%;
}

.container,
.top-contact-wrap,
.nav-wrap,
.footer-grid,
.hero-grid,
.home-hero-grid,
.minimal-hero-grid,
.premium-hero-grid,
.tools-hero-grid,
.tool-hero-grid,
.tool-work-grid,
.grid,
.grid-2,
.grid-3,
.grid-4,
.card-grid,
.home-card-grid,
.home-tool-grid,
.home-service-grid,
.home-blog-grid,
.home-trust-grid,
.tools-action-grid,
.tools-directory-grid,
.popular-tool-grid,
.compact-card-grid,
.compact-path-grid,
.compact-trust-grid,
.premium-card-grid,
.bento-grid,
.showcase-grid,
.trust-grid,
.path-grid,
.form-grid,
.result-grid,
.summary-grid,
.tax-grid,
.mock-grid {
  max-width: 100%;
}

img,
svg,
canvas,
video,
iframe,
table,
pre,
code {
  max-width: 100%;
}

pre,
table {
  overflow-x: auto;
}

.btn,
.button,
.chip,
.pill,
.badge,
.eyebrow,
.section-label,
.top-contact-link,
.nav-links a,
.footer-links a {
  max-width: 100%;
}

@media (max-width: 980px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .hero-grid,
  .home-hero-grid,
  .minimal-hero-grid,
  .premium-hero-grid,
  .tools-hero-grid,
  .tool-hero-grid,
  .tool-work-grid,
  .footer-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .bento-grid,
  .showcase-grid,
  .premium-card-grid,
  .compact-path-grid,
  .home-trust-grid,
  .tools-action-grid,
  .tools-directory-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .home-tool-grid,
  .home-service-grid,
  .home-blog-grid,
  .popular-tool-grid,
  .compact-card-grid,
  .trust-grid,
  .path-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-wrap.open .nav-links,
  .nav-wrap.open .header-actions {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .top-contact-wrap,
  .nav-wrap,
  .hero-actions,
  .home-hero-actions,
  .tool-hero-actions,
  .tool-primary-actions,
  .tool-result-actions,
  .tool-support-actions,
  .section-head,
  .tools-section-head {
    width: 100%;
    max-width: 100%;
  }

  .home-tool-grid,
  .home-service-grid,
  .home-blog-grid,
  .popular-tool-grid,
  .compact-card-grid,
  .trust-grid,
  .path-grid,
  .card-grid,
  .form-grid,
  .result-grid,
  .summary-grid,
  .tax-grid,
  .tools-action-grid,
  .tools-directory-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .top-contact-wrap,
  .top-contact-right,
  .nav-wrap,
  .nav-links,
  .header-actions,
  .hero-actions,
  .home-hero-actions,
  .tool-hero-actions,
  .tool-trust-row,
  .filter-row,
  .tools-filter-row,
  .footer-bottom {
    flex-wrap: wrap;
  }

  .btn,
  .button {
    white-space: normal;
  }

  .brand,
  .brand-copy,
  .brand-tag,
  .top-contact-link,
  .section-head,
  .card,
  .tool-card,
  .service-card,
  .blog-card,
  .tool-form-panel,
  .tool-result-panel,
  .tool-hero-panel {
    max-width: 100%;
  }
}

@media (max-width: 430px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .top-contact-link,
  .chip,
  .pill,
  .badge,
  .eyebrow,
  .section-label {
    overflow-wrap: anywhere;
  }

  .tool-trust-row,
  .quick-action-row,
  .filter-row,
  .tools-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/*
  Phase 3D-D2 - Compliance Desk Homepage Hero
  Scope: homepage hero visual enhancement only. Uses lightweight CSS graphics and preserves approved homepage sections.
*/
.compliance-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 0 60px;
  background:
    radial-gradient(circle at 78% 16%, rgba(45, 101, 243, .16), transparent 26rem),
    radial-gradient(circle at 18% 86%, rgba(21, 168, 107, .10), transparent 24rem),
    linear-gradient(135deg, #F7FBFF 0%, #FFFFFF 46%, #EEF5FF 100%);
}

.compliance-hero::before,
.compliance-hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  pointer-events: none;
}

.compliance-hero::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 75% 45%, rgba(0,0,0,.75), transparent 62%);
}

.compliance-hero::after {
  right: -120px;
  top: 48px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(45, 101, 243, .07);
  box-shadow: -180px 180px 0 rgba(21, 168, 107, .045);
}

.compliance-bg,
.compliance-bg span {
  position: absolute;
  pointer-events: none;
}

.compliance-bg {
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-doc {
  width: 155px;
  height: 205px;
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.68), rgba(255,255,255,.18)),
    repeating-linear-gradient(180deg, transparent 0 18px, rgba(37,99,235,.08) 19px 20px);
  box-shadow: 0 30px 80px rgba(15,30,61,.06);
  transform: rotate(-8deg);
}

.bg-doc-one {
  top: 36px;
  right: 8%;
  opacity: .75;
}

.bg-doc-two {
  bottom: 22px;
  left: 6%;
  opacity: .45;
  transform: rotate(10deg) scale(.86);
}

.bg-grid {
  left: 7%;
  bottom: 22%;
  width: 145px;
  height: 145px;
  border-radius: 26px;
  opacity: .55;
  background-image:
    linear-gradient(rgba(15,30,61,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,30,61,.08) 1px, transparent 1px);
  background-size: 18px 18px;
  transform: rotate(-10deg);
}

.bg-stamp {
  right: 38%;
  top: 72px;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 2px solid rgba(21, 168, 107, .16);
  border-radius: 50%;
  color: rgba(21, 168, 107, .20);
  font-size: 34px;
  font-weight: 900;
  transform: rotate(-14deg);
}

.compliance-hero-grid {
  position: relative;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .86fr);
  gap: 58px;
}

.compliance-hero-copy .home-badge {
  background: rgba(234, 241, 255, .90);
  backdrop-filter: blur(8px);
}

.compliance-hero-copy h1 {
  max-width: 760px;
  margin-top: 22px;
  letter-spacing: -.06em;
}

.compliance-hero-copy .home-lead {
  max-width: 650px;
}

.compliance-desk-panel {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(191, 210, 255, .95);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,255,.94));
  box-shadow:
    0 28px 80px rgba(15, 30, 61, .14),
    inset 0 1px 0 rgba(255,255,255,.95);
  overflow: hidden;
}

.compliance-desk-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), #20B486, #F59E0B);
}

.compliance-desk-panel::after {
  content: "";
  position: absolute;
  right: -48px;
  top: 38px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(45, 101, 243, .07);
  z-index: 0;
}

.desk-topline,
.desk-card-grid,
.desk-document-preview {
  position: relative;
  z-index: 1;
}

.desk-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.desk-topline strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.desk-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #EAFBF3;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.desk-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}

.desk-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.desk-mini-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #E1EAFF;
  border-radius: 20px;
  background: rgba(255, 255, 255, .88);
  color: var(--navy);
  box-shadow: 0 14px 32px rgba(15,30,61,.055);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.desk-mini-card:hover {
  transform: translateY(-3px);
  border-color: #BFD2FF;
  background: #FFFFFF;
  box-shadow: 0 20px 46px rgba(15,30,61,.10);
}

.desk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #EAF1FF;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -.01em;
}

.desk-mini-card strong,
.desk-mini-card small {
  min-width: 0;
  display: block;
}

.desk-mini-card strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desk-mini-card small {
  margin-top: 3px;
  color: #6A7892;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.desk-document-preview {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #DDE9FF;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #FFFFFF, #F8FBFF);
  box-shadow: 0 18px 42px rgba(15,30,61,.08);
}

.document-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #6A7892;
  font-size: 13px;
  font-weight: 850;
}

.document-preview-head strong {
  color: #047857;
}

.document-lines {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.document-lines i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #E8EFFB;
}

.document-lines i:nth-child(1) { width: 88%; }
.document-lines i:nth-child(2) { width: 72%; }
.document-lines i:nth-child(3) { width: 54%; }

.document-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.document-preview-meta span {
  padding: 7px 9px;
  border-radius: 999px;
  background: #F1F6FF;
  color: #335071;
  font-size: 12px;
  font-weight: 850;
}

.document-ready-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid #E6EEFF;
  color: var(--navy);
  font-size: 14px;
}

.ready-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(21,168,107,.12);
}

@media (max-width: 1100px) {
  .compliance-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .compliance-desk-panel {
    max-width: 680px;
  }

  .bg-stamp {
    right: 12%;
  }
}

@media (max-width: 720px) {
  .compliance-hero {
    padding: 58px 0 38px;
  }

  .compliance-hero-grid {
    gap: 30px;
  }

  .compliance-desk-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .desk-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .desk-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .desk-mini-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .bg-doc,
  .bg-grid,
  .bg-stamp {
    opacity: .25;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desk-mini-card {
    transition: none;
  }

  .desk-mini-card:hover {
    transform: none;
  }
}

/*
  Phase 3D-E - Homepage Compliance Desk Visual Unification
  Goal: align the full homepage with the approved Compliance Desk hero style.
  Scope: homepage-specific visual polish only. No JS/tool logic touched.
*/
.compliance-home {
  position: relative;
  background:
    radial-gradient(circle at 92% 4%, rgba(45, 101, 243, .08), transparent 25rem),
    radial-gradient(circle at 8% 62%, rgba(21, 168, 107, .045), transparent 22rem),
    linear-gradient(180deg, #F7FBFF 0%, #FFFFFF 38%, #F6FAFF 100%);
}

.compliance-actions {
  position: relative;
  margin-top: -18px;
  z-index: 3;
}

.desk-action-box {
  position: relative;
  overflow: hidden;
  border-color: rgba(191, 210, 255, .92);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.96));
  box-shadow: 0 18px 52px rgba(15, 30, 61, .09);
}

.desk-action-box::before {
  content: "";
  position: absolute;
  right: -46px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 42px;
  border: 1px solid rgba(37, 99, 235, .12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.36), rgba(255,255,255,0)),
    repeating-linear-gradient(180deg, transparent 0 16px, rgba(37,99,235,.06) 17px 18px);
  transform: rotate(-10deg);
  pointer-events: none;
}

.desk-actions-row a {
  justify-content: flex-start;
  gap: 10px;
  min-height: 56px;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 10px 26px rgba(15, 30, 61, .045);
}

.desk-actions-row a:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 30, 61, .08);
}

.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #EAF1FF;
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: -.01em;
}

.visual-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.visual-section::before,
.visual-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.visual-section::before {
  width: 190px;
  height: 230px;
  border: 1px solid rgba(37, 99, 235, .11);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.10)),
    repeating-linear-gradient(180deg, transparent 0 18px, rgba(37,99,235,.055) 19px 20px);
  opacity: .60;
}

.visual-section::after {
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(45, 101, 243, .08), transparent 68%);
}

.tools-visual-section::before {
  right: 4%;
  top: 30px;
  transform: rotate(8deg);
}

.tools-visual-section::after {
  left: -90px;
  bottom: 20px;
}

.services-visual-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
}

.services-visual-section::before {
  left: 4%;
  bottom: 34px;
  transform: rotate(-8deg) scale(.82);
  opacity: .48;
}

.services-visual-section::after {
  right: -80px;
  top: 50px;
  background: radial-gradient(circle, rgba(21, 168, 107, .075), transparent 68%);
}

.trust-visual-section {
  background:
    linear-gradient(180deg, #FFFFFF 0%, #F6FAFF 100%);
}

.trust-visual-section::before {
  right: 7%;
  bottom: 20px;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(21, 168, 107, .12);
  background: transparent;
  opacity: .85;
}

.trust-visual-section::after {
  left: 6%;
  top: 46px;
  width: 150px;
  height: 150px;
  border-radius: 28px;
  opacity: .50;
  background-image:
    linear-gradient(rgba(15,30,61,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,30,61,.06) 1px, transparent 1px);
  background-size: 18px 18px;
  transform: rotate(-8deg);
}

.guides-visual-section::before {
  right: 7%;
  top: 38px;
  transform: rotate(-7deg) scale(.78);
  opacity: .48;
}

.guides-visual-section::after {
  left: -80px;
  top: 92px;
  background: radial-gradient(circle, rgba(245, 158, 11, .06), transparent 68%);
}

.home-section-head {
  position: relative;
}

.home-section-head::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 10px;
  width: 5px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), #20B486);
  opacity: .18;
}

.home-card-grid .card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, #FFFFFF, #FAFCFF);
}

.home-card-grid .card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -26px;
  width: 105px;
  height: 120px;
  border: 1px solid rgba(37, 99, 235, .10);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.08)),
    repeating-linear-gradient(180deg, transparent 0 13px, rgba(37,99,235,.06) 14px 15px);
  transform: rotate(9deg);
  opacity: .78;
  z-index: -1;
}

.home-service-grid .card::after {
  border-color: rgba(21, 168, 107, .11);
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.08)),
    repeating-linear-gradient(180deg, transparent 0 13px, rgba(21,168,107,.055) 14px 15px);
}

.home-blog-grid .card::after {
  border-color: rgba(245, 158, 11, .12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.08)),
    repeating-linear-gradient(180deg, transparent 0 13px, rgba(245,158,11,.052) 14px 15px);
}

.home-card-grid .card:hover::after {
  opacity: .98;
  transform: rotate(7deg) translateY(2px);
}

.home-trust-grid article {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #FFFFFF, #FAFCFF);
}

.home-trust-grid article::after {
  content: "✓";
  position: absolute;
  right: -16px;
  bottom: -28px;
  z-index: -1;
  color: rgba(21, 168, 107, .08);
  font-size: 92px;
  line-height: 1;
  font-weight: 950;
}

.compliance-final-card {
  position: relative;
  overflow: hidden;
  min-height: 236px;
}

.compliance-final-card::before {
  content: "";
  position: absolute;
  right: 17%;
  top: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}

.final-copy,
.compliance-final-card > .btn {
  position: relative;
  z-index: 2;
}

.final-graphic {
  position: relative;
  z-index: 1;
  flex: 0 0 190px;
  min-height: 138px;
}

.final-doc {
  position: absolute;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  color: rgba(255,255,255,.84);
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04)),
    repeating-linear-gradient(180deg, transparent 0 17px, rgba(255,255,255,.10) 18px 19px);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .05em;
  box-shadow: 0 22px 48px rgba(0,0,0,.12);
}

.final-doc-main {
  left: 22px;
  top: 4px;
  width: 132px;
  height: 154px;
  transform: rotate(-6deg);
}

.final-doc-side {
  right: 8px;
  top: 32px;
  width: 92px;
  height: 118px;
  transform: rotate(8deg);
}

.final-check {
  position: absolute;
  right: 54px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #EAFBF3;
  color: #047857;
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(0,0,0,.14);
}

@media (max-width: 1100px) {
  .final-graphic {
    order: 3;
    flex-basis: 170px;
    width: min(100%, 220px);
  }
}

@media (max-width: 820px) {
  .compliance-actions {
    margin-top: 0;
  }

  .home-section-head::before {
    display: none;
  }

  .visual-section::before,
  .visual-section::after {
    opacity: .28;
  }

  .compliance-final-card {
    min-height: 0;
  }

  .final-graphic {
    display: none;
  }
}

@media (max-width: 640px) {
  .desk-actions-row a {
    min-height: 52px;
  }

  .action-icon {
    width: 32px;
    height: 32px;
  }

  .home-card-grid .card::after {
    width: 82px;
    height: 96px;
    opacity: .52;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desk-actions-row a,
  .home-card-grid .card::after {
    transition: none;
  }

  .desk-actions-row a:hover,
  .home-card-grid .card:hover::after {
    transform: none;
  }
}

/*
  Phase 3D-F - Blue Theme Homepage & Hero Rebuild
  Goal: make the hero and complete homepage feel more aligned with Adhiniyam's blue professional platform theme.
  Scope: homepage-specific visual overrides only. No JS, tool logic, sitemap, robots, or JSON files touched.
*/
.blue-homepage {
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 22%, rgba(45, 101, 243, .16), transparent 26rem),
    radial-gradient(circle at 92% 54%, rgba(21, 168, 107, .08), transparent 24rem),
    linear-gradient(180deg, #0A2B66 0%, #0F4DB3 22%, #EAF3FF 34%, #F6FAFF 100%);
}

.blue-homepage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.72), rgba(0,0,0,.18) 36%, transparent 70%);
  z-index: 0;
}

.blue-homepage > section {
  position: relative;
  z-index: 1;
}

.blue-platform-hero {
  min-height: 680px;
  padding: 108px 0 88px;
  color: #FFFFFF;
  background:
    radial-gradient(circle at 82% 18%, rgba(99, 179, 255, .30), transparent 24rem),
    radial-gradient(circle at 48% 96%, rgba(21, 168, 107, .18), transparent 30rem),
    linear-gradient(135deg, #061936 0%, #092B68 40%, #0D57C4 100%);
}

.blue-platform-hero::before {
  background-image:
    linear-gradient(rgba(255,255,255,.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.065) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 76% 44%, rgba(0,0,0,.85), transparent 66%);
}

.blue-platform-hero::after {
  right: -130px;
  top: 74px;
  width: 560px;
  height: 560px;
  background: rgba(255, 255, 255, .07);
  box-shadow: -220px 210px 0 rgba(255,255,255,.045), -90px 50px 90px rgba(42, 124, 255, .22);
}

.blue-platform-hero .bg-doc {
  border-color: rgba(255, 255, 255, .18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03)),
    repeating-linear-gradient(180deg, transparent 0 18px, rgba(255,255,255,.08) 19px 20px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .10);
}

.blue-platform-hero .bg-grid {
  opacity: .58;
  background-image:
    linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.11) 1px, transparent 1px);
}

.blue-platform-hero .bg-stamp {
  color: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.16);
}

.bg-ring {
  display: block;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  opacity: .72;
}

.bg-ring-one {
  right: 20%;
  top: 105px;
  width: 180px;
  height: 180px;
}

.bg-ring-two {
  left: 40%;
  bottom: 60px;
  width: 112px;
  height: 112px;
  opacity: .42;
}

.bg-lineflow {
  display: block;
  right: 8%;
  bottom: 76px;
  width: 420px;
  height: 160px;
  border-bottom: 1px solid rgba(255,255,255,.16);
  border-left: 1px solid rgba(255,255,255,.10);
  border-radius: 0 0 0 80px;
  transform: rotate(-8deg);
  opacity: .62;
}

.blue-platform-hero .compliance-hero-grid {
  align-items: center;
  grid-template-columns: minmax(0, .96fr) minmax(390px, .84fr);
  gap: 64px;
}

.blue-platform-hero .home-badge {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .12);
  color: #EAF2FF;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  backdrop-filter: blur(12px);
}

.blue-platform-hero h1 {
  max-width: 780px;
  color: #FFFFFF;
  font-size: clamp(46px, 5.4vw, 78px);
  line-height: .96;
  letter-spacing: -.065em;
  text-shadow: 0 18px 42px rgba(0,0,0,.16);
}

.blue-platform-hero .home-lead {
  max-width: 680px;
  color: #D6E5FF;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.55;
}

.blue-platform-hero .home-hero-actions .btn.primary {
  background: #FFFFFF;
  color: #1557D7;
  border-color: #FFFFFF;
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}

.blue-platform-hero .home-hero-actions .btn.primary:hover {
  color: #0B3F95;
  transform: translateY(-2px);
}

.blue-platform-hero .home-hero-actions .btn.secondary {
  border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.08);
  color: #FFFFFF;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.blue-platform-hero .home-hero-actions .btn.secondary:hover {
  border-color: rgba(255,255,255,.66);
  background: rgba(255,255,255,.14);
}

.blue-platform-hero .compliance-trust-line span {
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.10);
  color: #EAF2FF;
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
  backdrop-filter: blur(10px);
}

.blue-platform-hero .compliance-desk-panel {
  border: 1px solid rgba(255,255,255,.54);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,249,255,.94));
  box-shadow: 0 30px 90px rgba(0, 13, 42, .26);
}

.blue-platform-hero .compliance-desk-panel::before {
  height: 5px;
  background: linear-gradient(90deg, #FFFFFF, #60A5FA, #20B486, #F59E0B);
  opacity: .95;
}

.blue-platform-hero .desk-mini-card {
  min-height: 142px;
  border-color: #CFE0FF;
  background:
    radial-gradient(circle at 100% 0%, rgba(45,101,243,.08), transparent 7rem),
    #FFFFFF;
  box-shadow: 0 18px 42px rgba(12, 44, 109, .10);
}

.blue-platform-hero .desk-document-preview {
  background:
    linear-gradient(180deg, #FFFFFF, #F7FAFF);
  border-color: #CFE0FF;
  box-shadow: 0 20px 56px rgba(12, 44, 109, .12);
}

.blue-homepage .compliance-actions {
  margin-top: -38px;
  padding-bottom: 28px;
}

.blue-homepage .desk-action-box {
  border: 1px solid rgba(255,255,255,.62);
  background:
    radial-gradient(circle at 90% 0%, rgba(45,101,243,.12), transparent 13rem),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,247,255,.96));
  box-shadow: 0 24px 70px rgba(8, 35, 89, .18);
}

.blue-homepage .visual-section,
.blue-homepage .home-why,
.blue-homepage .home-guides-preview,
.blue-homepage .home-services-preview,
.blue-homepage .home-tools-preview {
  background:
    radial-gradient(circle at 95% 8%, rgba(45, 101, 243, .08), transparent 22rem),
    linear-gradient(180deg, #EAF3FF 0%, #F7FBFF 100%);
}

.blue-homepage .services-visual-section,
.blue-homepage .trust-visual-section {
  background:
    radial-gradient(circle at 10% 8%, rgba(37, 99, 235, .08), transparent 20rem),
    linear-gradient(180deg, #F2F7FF 0%, #EAF3FF 100%);
}

.blue-homepage .home-section-head {
  padding: 24px 26px;
  border: 1px solid rgba(191, 210, 255, .86);
  border-radius: 28px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 18px 52px rgba(15, 30, 61, .075);
  backdrop-filter: blur(10px);
}

.blue-homepage .home-section-head::before {
  left: 0;
  top: 22px;
  height: 58px;
  opacity: .35;
}

.blue-homepage .section-kicker {
  background: #DDEBFF;
  color: #1557D7;
}

.blue-homepage .home-section-head h2 {
  color: #071A3D;
}

.blue-homepage .home-section-head p {
  color: #4F6280;
}

.blue-homepage .home-card-grid .card,
.blue-homepage .home-trust-grid article {
  border-color: rgba(191, 210, 255, .94);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 101, 243, .065), transparent 8rem),
    linear-gradient(180deg, #FFFFFF, #F9FCFF);
  box-shadow: 0 18px 46px rgba(15, 30, 61, .08);
}

.blue-homepage .home-card-grid .card:hover,
.blue-homepage .home-trust-grid article:hover {
  box-shadow: 0 26px 70px rgba(15, 30, 61, .13);
}

.blue-homepage .home-card-grid .card h3,
.blue-homepage .home-trust-grid strong {
  color: #071A3D;
}

.blue-homepage .home-card-grid .card p,
.blue-homepage .home-trust-grid p {
  color: #536882;
}

.blue-homepage .home-card-grid .card .btn,
.blue-homepage .section-link {
  color: #1557D7;
}

.blue-homepage .home-trust-grid span {
  background: #DDEBFF;
  color: #1557D7;
}

.blue-homepage .compliance-final-card {
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 84% 14%, rgba(99, 179, 255, .28), transparent 18rem),
    radial-gradient(circle at 12% 92%, rgba(21, 168, 107, .18), transparent 18rem),
    linear-gradient(135deg, #061936 0%, #0A2B66 48%, #0E55C2 100%);
  box-shadow: 0 28px 90px rgba(8, 35, 89, .24);
}

.blue-homepage .compliance-final-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 80% 50%, rgba(0,0,0,.65), transparent 62%);
}

@media (max-width: 1100px) {
  .blue-platform-hero {
    min-height: 0;
    padding: 76px 0 74px;
  }

  .blue-platform-hero .compliance-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .blue-platform-hero .compliance-desk-panel {
    max-width: 720px;
  }
}

@media (max-width: 820px) {
  .blue-homepage {
    background: linear-gradient(180deg, #0A2B66 0%, #0F4DB3 18%, #EAF3FF 30%, #F7FBFF 100%);
  }

  .blue-platform-hero {
    padding: 54px 0 44px;
  }

  .blue-platform-hero h1 {
    font-size: clamp(38px, 11vw, 56px);
    line-height: 1;
  }

  .blue-platform-hero .home-lead {
    font-size: 17px;
  }

  .blue-homepage .compliance-actions {
    margin-top: 0;
    padding-top: 18px;
  }

  .blue-homepage .home-section-head {
    padding: 22px;
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .blue-platform-hero .desk-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .blue-platform-hero .desk-mini-card {
    min-height: 0;
  }

  .blue-platform-hero .home-hero-actions .btn,
  .blue-platform-hero .home-hero-actions {
    width: 100%;
  }

  .bg-lineflow,
  .bg-ring-two {
    display: none;
  }
}

/* Phase 3D-G: premium right-side hero card refinement */
.blue-platform-hero .premium-desk-visual {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.98), transparent 16rem),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(235,244,255,.90));
  box-shadow:
    0 38px 100px rgba(0, 13, 42, .35),
    0 0 0 1px rgba(255,255,255,.24) inset,
    0 24px 80px rgba(54, 119, 255, .18);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
  transform-origin: center;
  isolation: isolate;
}

.blue-platform-hero .premium-desk-visual::before {
  height: 6px;
  background: linear-gradient(90deg, #FFFFFF 0%, #7BB3FF 28%, #20B486 62%, #FBBF24 100%);
}

.blue-platform-hero .premium-desk-visual::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 28px;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(45,101,243,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,101,243,.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 72% 28%, rgba(0,0,0,.75), transparent 58%);
  z-index: -1;
}

.desk-orbit {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  border: 1px solid rgba(45,101,243,.16);
  z-index: -1;
}

.desk-orbit-one {
  right: -48px;
  top: 72px;
  width: 190px;
  height: 190px;
  background: rgba(45,101,243,.045);
}

.desk-orbit-two {
  left: -34px;
  bottom: 82px;
  width: 110px;
  height: 110px;
  background: rgba(32,180,134,.055);
}

.premium-desk-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(207,224,255,.88);
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 16px 44px rgba(12, 44, 109, .08);
  backdrop-filter: blur(14px);
}

.desk-window-controls {
  display: inline-flex;
  gap: 5px;
  padding: 9px;
  border-radius: 999px;
  background: #F1F6FF;
}

.desk-window-controls span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #93B8FF;
}

.desk-window-controls span:nth-child(2) { background: #20B486; }
.desk-window-controls span:nth-child(3) { background: #FBBF24; }

.premium-desk-head strong {
  display: block;
  margin-top: 5px;
  color: #071A3D;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.premium-desk-stage {
  position: relative;
  z-index: 1;
  min-height: 360px;
  margin: 18px 0 16px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 24%, rgba(45,101,243,.10), transparent 15rem),
    linear-gradient(180deg, rgba(255,255,255,.60), rgba(241,247,255,.70));
  overflow: hidden;
}

.premium-desk-stage::before {
  content: "";
  position: absolute;
  inset: 34px 52px auto auto;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45,101,243,.16), rgba(32,180,134,.10));
  filter: blur(.2px);
}

.premium-desk-stage::after {
  content: "";
  position: absolute;
  left: 36px;
  bottom: 30px;
  width: 180px;
  height: 112px;
  border-radius: 22px;
  border: 1px solid rgba(45,101,243,.11);
  background: repeating-linear-gradient(180deg, rgba(45,101,243,.065) 0 1px, transparent 1px 18px);
  transform: rotate(-8deg);
  opacity: .72;
}

.desk-document-main {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(76%, 360px);
  min-height: 240px;
  padding: 24px;
  border: 1px solid #CFE0FF;
  border-radius: 28px;
  background:
    linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
  box-shadow:
    0 30px 70px rgba(12,44,109,.18),
    0 1px 0 rgba(255,255,255,.95) inset;
  transform: translate(-50%, -50%) rotate(-1.5deg);
}

.desk-document-main::before,
.desk-document-main::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  pointer-events: none;
}

.desk-document-main::before {
  border: 1px dashed rgba(45,101,243,.18);
}

.desk-document-main::after {
  right: -18px;
  top: 34px;
  left: auto;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: rgba(32,180,134,.11);
  transform: rotate(8deg);
}

.document-stamp {
  position: absolute;
  right: 20px;
  top: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(32,180,134,.24);
  border-radius: 999px;
  background: #EAFBF3;
  color: #047857;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.document-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 92px;
}

.doc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #EAF1FF;
  color: #1557D7;
  font-size: 11px;
  font-weight: 950;
}

.document-top-row strong,
.document-top-row small {
  display: block;
}

.document-top-row strong {
  color: #071A3D;
  font-size: 17px;
  line-height: 1.2;
}

.document-top-row small {
  margin-top: 3px;
  color: #64748B;
  font-size: 12px;
  font-weight: 800;
}

.document-line-stack {
  display: grid;
  gap: 9px;
  margin: 28px 0 20px;
}

.document-line-stack span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #E6EEFF;
}

.document-line-stack span:nth-child(1) { width: 86%; }
.document-line-stack span:nth-child(2) { width: 72%; }
.document-line-stack span:nth-child(3) { width: 58%; }
.document-line-stack span:nth-child(4) { width: 44%; background: #D7E5FF; }

.document-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.document-summary-grid span {
  min-width: 0;
  padding: 11px 9px;
  border: 1px solid #E1EAFF;
  border-radius: 16px;
  background: #F6FAFF;
  text-align: center;
}

.document-summary-grid b,
.document-summary-grid small {
  display: block;
}

.document-summary-grid b {
  color: #1557D7;
  font-size: 12px;
  font-weight: 950;
}

.document-summary-grid small {
  margin-top: 3px;
  color: #64748B;
  font-size: 10px;
  font-weight: 850;
}

.floating-desk-tile {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 172px;
  padding: 12px;
  border: 1px solid rgba(207,224,255,.92);
  border-radius: 20px;
  background: rgba(255,255,255,.91);
  color: #071A3D;
  box-shadow: 0 20px 52px rgba(12,44,109,.16);
  backdrop-filter: blur(14px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.floating-desk-tile:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: #9DBBFF;
  box-shadow: 0 28px 68px rgba(12,44,109,.20);
}

.floating-desk-tile span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #EAF1FF;
  color: #1557D7;
  font-size: 11px;
  font-weight: 950;
}

.floating-desk-tile strong,
.floating-desk-tile small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-desk-tile strong {
  font-size: 13px;
  line-height: 1.18;
}

.floating-desk-tile small {
  margin-top: 2px;
  color: #64748B;
  font-size: 11px;
  font-weight: 800;
}

.tile-gst { left: 18px; top: 32px; }
.tile-payroll { right: 18px; top: 96px; }
.tile-hr { left: 36px; bottom: 34px; }

.desk-workflow-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #DDE9FF;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 36px rgba(12,44,109,.08);
}

.desk-workflow-row span {
  color: #15345D;
  font-size: 12px;
  font-weight: 950;
}

.desk-workflow-row i {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #93B8FF, #20B486);
}

.desk-proof-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.desk-proof-row div {
  padding: 13px 12px;
  border: 1px solid #DDE9FF;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  text-align: center;
}

.desk-proof-row strong,
.desk-proof-row span {
  display: block;
}

.desk-proof-row strong {
  color: #1557D7;
  font-size: 18px;
  line-height: 1;
}

.desk-proof-row span {
  margin-top: 5px;
  color: #64748B;
  font-size: 11px;
  font-weight: 850;
}

@media (max-width: 1100px) {
  .blue-platform-hero .premium-desk-visual {
    transform: none;
  }
}

@media (max-width: 640px) {
  .blue-platform-hero .premium-desk-visual {
    padding: 16px;
    border-radius: 26px;
  }

  .premium-desk-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px;
  }

  .desk-window-controls {
    display: none;
  }

  .premium-desk-head strong {
    font-size: 16px;
  }

  .premium-desk-stage {
    min-height: 520px;
    margin: 14px 0;
    border-radius: 24px;
  }

  .desk-document-main {
    top: 48%;
    width: calc(100% - 28px);
    padding: 20px;
    transform: translate(-50%, -50%);
  }

  .document-stamp {
    position: static;
    display: inline-flex;
    margin-bottom: 12px;
  }

  .document-top-row {
    padding-right: 0;
  }

  .document-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .floating-desk-tile {
    min-width: 0;
    width: calc(100% - 32px);
    left: 16px;
    right: auto;
  }

  .tile-gst { top: 18px; }
  .tile-payroll { top: auto; bottom: 18px; }
  .tile-hr { top: 82px; bottom: auto; }

  .desk-workflow-row {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 8px;
  }

  .desk-workflow-row i {
    width: 44px;
    transform: rotate(90deg);
  }

  .desk-proof-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Phase 3D-H: compact hero balance and spacing fix
   Goal: keep the blue Compliance Desk concept but reduce excessive height, oversized text, and bulky right-side card. */
.blue-platform-hero {
  min-height: auto;
  padding: 72px 0 58px;
}

.blue-platform-hero .compliance-hero-grid {
  grid-template-columns: minmax(0, .92fr) minmax(340px, 520px);
  gap: clamp(34px, 4vw, 54px);
}

.blue-platform-hero .home-badge {
  padding: 9px 16px;
  font-size: 12px;
}

.blue-platform-hero h1 {
  max-width: 690px;
  font-size: clamp(42px, 4.65vw, 66px);
  line-height: 1;
  letter-spacing: -.055em;
  margin-top: 20px;
}

.blue-platform-hero .home-lead {
  max-width: 610px;
  margin-top: 20px;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.52;
}

.blue-platform-hero .home-hero-actions {
  margin-top: 24px;
}

.blue-platform-hero .compliance-trust-line {
  margin-top: 20px;
}

.blue-platform-hero .premium-desk-visual {
  max-width: 520px;
  padding: 18px;
  border-radius: 30px;
  transform: perspective(1200px) rotateY(-2deg) rotateX(.6deg);
}

.blue-platform-hero .premium-desk-visual::after {
  inset: 5px;
  border-radius: 25px;
  background-size: 24px 24px;
}

.premium-desk-head {
  padding: 11px 12px;
  border-radius: 20px;
}

.premium-desk-head strong {
  margin-top: 3px;
  font-size: 16px;
}

.desk-window-controls {
  padding: 7px;
}

.desk-window-controls span {
  width: 6px;
  height: 6px;
}

.premium-desk-stage {
  min-height: 270px;
  margin: 14px 0 12px;
  border-radius: 24px;
}

.premium-desk-stage::before {
  inset: 26px 42px auto auto;
  width: 132px;
  height: 132px;
}

.premium-desk-stage::after {
  left: 28px;
  bottom: 24px;
  width: 140px;
  height: 86px;
  border-radius: 18px;
}

.desk-document-main {
  width: min(72%, 300px);
  min-height: 190px;
  padding: 19px;
  border-radius: 23px;
}

.desk-document-main::before,
.desk-document-main::after {
  inset: 11px;
  border-radius: 18px;
}

.desk-document-main::after {
  right: -14px;
  top: 28px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.document-stamp {
  right: 16px;
  top: 14px;
  padding: 6px 9px;
  font-size: 10px;
}

.document-top-row {
  gap: 10px;
  padding-right: 78px;
}

.doc-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 10px;
}

.document-top-row strong {
  font-size: 15px;
}

.document-top-row small {
  font-size: 11px;
}

.document-line-stack {
  gap: 7px;
  margin: 21px 0 15px;
}

.document-line-stack span {
  height: 8px;
}

.document-summary-grid span {
  padding: 9px 7px;
  border-radius: 14px;
}

.document-summary-grid b {
  font-size: 11px;
}

.document-summary-grid small {
  font-size: 9px;
}

.floating-desk-tile {
  min-width: 146px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 17px;
}

.floating-desk-tile span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 10px;
}

.floating-desk-tile strong {
  font-size: 12px;
}

.floating-desk-tile small {
  font-size: 10px;
}

.tile-gst { left: 14px; top: 24px; }
.tile-payroll { right: 14px; top: 70px; }
.tile-hr { left: 26px; bottom: 24px; }

.desk-workflow-row {
  padding: 10px 12px;
  border-radius: 16px;
  gap: 8px;
}

.desk-workflow-row span {
  font-size: 11px;
}

.desk-proof-row {
  gap: 8px;
  margin-top: 10px;
}

.desk-proof-row div {
  padding: 10px 9px;
  border-radius: 16px;
}

.desk-proof-row strong {
  font-size: 15px;
}

.desk-proof-row span {
  margin-top: 4px;
  font-size: 10px;
}

.blue-homepage .compliance-actions {
  margin-top: -24px;
}

@media (max-width: 1200px) {
  .blue-platform-hero .compliance-hero-grid {
    grid-template-columns: minmax(0, .95fr) minmax(320px, 480px);
    gap: 36px;
  }

  .blue-platform-hero h1 {
    font-size: clamp(40px, 4.7vw, 58px);
  }
}

@media (max-width: 1100px) {
  .blue-platform-hero {
    padding: 62px 0 54px;
  }

  .blue-platform-hero .premium-desk-visual {
    max-width: 620px;
    transform: none;
  }
}

@media (max-width: 820px) {
  .blue-platform-hero {
    padding: 42px 0 36px;
  }

  .blue-platform-hero h1 {
    font-size: clamp(34px, 9.8vw, 50px);
    line-height: 1.03;
    margin-top: 18px;
  }

  .blue-platform-hero .home-lead {
    margin-top: 16px;
    font-size: 16px;
  }

  .blue-platform-hero .home-hero-actions,
  .blue-platform-hero .compliance-trust-line {
    margin-top: 18px;
  }
}

@media (max-width: 640px) {
  .blue-platform-hero .premium-desk-visual {
    padding: 14px;
    border-radius: 24px;
  }

  .premium-desk-stage {
    min-height: 430px;
  }

  .desk-document-main {
    min-height: 176px;
    padding: 17px;
  }

  .floating-desk-tile {
    width: calc(100% - 28px);
    left: 14px;
  }

  .tile-gst { top: 16px; }
  .tile-hr { top: 76px; }
  .tile-payroll { bottom: 16px; }
}

/* Phase 3D-I: homepage hero and layout cleanup
   Goals: simplify the right-side hero card, remove duplicated quick-action strip from HTML,
   make trust chips more professional, and reduce excessive desktop side whitespace. */
:root {
  --container: 1360px;
  --container-wide: 1480px;
}

main.home-pro,
.blue-homepage,
.blue-platform-hero,
.blue-homepage .visual-section,
.blue-homepage .home-final-cta {
  width: 100%;
}

.blue-platform-hero {
  padding: clamp(56px, 6vw, 76px) 0 clamp(52px, 5vw, 64px);
}

.blue-platform-hero .compliance-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  align-items: center;
  gap: clamp(38px, 5vw, 68px);
}

.blue-platform-hero .home-badge {
  border-radius: 999px;
}

.blue-platform-hero h1 {
  max-width: 720px;
  font-size: clamp(42px, 4.35vw, 64px);
  line-height: 1.02;
  letter-spacing: -.052em;
}

.blue-platform-hero .home-lead {
  max-width: 650px;
  color: rgba(231, 240, 255, .92);
}

.blue-platform-hero .compliance-trust-line {
  align-items: center;
  gap: 18px;
}

.blue-platform-hero .compliance-trust-line span {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: rgba(234, 242, 255, .92);
  font-size: 14px;
  font-weight: 850;
}

.blue-platform-hero .compliance-trust-line span::before {
  content: "✓";
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(16, 185, 129, .18);
  color: #34D399;
  font-size: 12px;
  font-weight: 950;
  box-shadow: none;
}

.workspace-preview-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.95));
  color: #071A3D;
  box-shadow: 0 28px 86px rgba(0, 13, 42, .26);
  overflow: hidden;
}

.workspace-preview-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #60A5FA, #20B486, #F59E0B);
}

.workspace-preview-panel::after {
  content: "";
  position: absolute;
  right: -72px;
  top: 52px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(45, 101, 243, .08);
  pointer-events: none;
}

.workspace-panel-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #DDE9FF;
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
}

.workspace-panel-top .panel-kicker,
.workspace-panel-top strong {
  display: block;
}

.workspace-panel-top .panel-kicker {
  color: #0E9F6E;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.workspace-panel-top strong {
  max-width: 300px;
  margin-top: 5px;
  color: #071A3D;
  font-size: 18px;
  line-height: 1.24;
  letter-spacing: -.025em;
}

.workspace-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: #EAFBF3;
  color: #047857;
  font-size: 12px;
  font-weight: 950;
}

.workspace-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .15);
}

.workspace-document-card {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #D6E5FF;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #FFFFFF, #F7FAFF);
  box-shadow: 0 18px 46px rgba(12, 44, 109, .10);
}

.workspace-document-card::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px dashed rgba(45, 101, 243, .18);
  border-radius: 19px;
  pointer-events: none;
}

.workspace-doc-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.doc-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #EAF1FF;
  color: #1557D7;
  font-size: 11px;
  font-weight: 950;
}

.workspace-doc-head strong,
.workspace-doc-head small {
  display: block;
}

.workspace-doc-head strong {
  font-size: 16px;
  line-height: 1.22;
  color: #071A3D;
}

.workspace-doc-head small {
  margin-top: 3px;
  color: #64748B;
  font-size: 12px;
  font-weight: 800;
}

.workspace-doc-head em {
  padding: 7px 10px;
  border-radius: 999px;
  background: #ECFDF5;
  color: #047857;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.workspace-doc-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 20px 0 16px;
}

.workspace-doc-lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #E6EEFF;
}

.workspace-doc-lines span:nth-child(1) { width: 88%; }
.workspace-doc-lines span:nth-child(2) { width: 70%; }
.workspace-doc-lines span:nth-child(3) { width: 52%; }

.workspace-doc-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workspace-doc-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #EEF5FF;
  color: #15345D;
  font-size: 11px;
  font-weight: 900;
}

.workspace-task-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.workspace-task-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #DDE9FF;
  border-radius: 18px;
  background: rgba(255, 255, 255, .84);
  color: #071A3D;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.workspace-task-list a:hover {
  transform: translateY(-2px);
  border-color: #AFC8FF;
  background: #FFFFFF;
  box-shadow: 0 16px 38px rgba(12, 44, 109, .11);
}

.workspace-task-list a > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: #EAF1FF;
  color: #1557D7;
  font-size: 11px;
  font-weight: 950;
}

.workspace-task-list strong,
.workspace-task-list small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-task-list strong {
  font-size: 14px;
  line-height: 1.2;
}

.workspace-task-list small {
  margin-top: 3px;
  color: #64748B;
  font-size: 11px;
  font-weight: 800;
}

.workspace-task-list b {
  color: #1557D7;
  font-size: 12px;
  font-weight: 950;
}

/* Remove visual gap left by the deleted duplicate quick-action strip. */
.blue-homepage .home-tools-preview {
  padding-top: 58px;
}

@media (max-width: 1100px) {
  .blue-platform-hero .compliance-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-preview-panel {
    width: min(100%, 640px);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --container: 1160px;
    --container-wide: 1240px;
  }

  .blue-platform-hero .compliance-trust-line {
    align-items: flex-start;
    gap: 12px;
  }

  .blue-platform-hero .compliance-trust-line span {
    width: 100%;
    font-size: 13px;
  }

  .workspace-preview-panel {
    padding: 16px;
    border-radius: 24px;
  }

  .workspace-panel-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-panel-top strong {
    max-width: none;
    font-size: 16px;
  }

  .workspace-status {
    width: max-content;
  }

  .workspace-doc-head {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .workspace-doc-head em {
    grid-column: 1 / -1;
    width: max-content;
  }

  .doc-mark,
  .workspace-task-list a > span {
    width: 40px;
    height: 40px;
  }

  .workspace-task-list a {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .workspace-task-list b {
    display: none;
  }
}

/* Phase 3D-J: hero spacing + cleaner right-side showcase
   Goals: remove excess top gap, replace busy right card with a cleaner professional document showcase,
   and reduce excessive desktop side whitespace without affecting tool logic. */
:root {
  --container: 1520px;
  --container-wide: 1620px;
}

.blue-platform-hero {
  padding: clamp(38px, 4.2vw, 58px) 0 clamp(44px, 4.8vw, 64px);
}

.blue-platform-hero .compliance-hero-grid {
  grid-template-columns: minmax(0, .94fr) minmax(360px, 500px);
  align-items: center;
  gap: clamp(34px, 4.5vw, 62px);
}

.blue-platform-hero .home-badge {
  padding: 8px 15px;
  font-size: 11px;
  letter-spacing: .065em;
}

.blue-platform-hero h1 {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(40px, 4.1vw, 62px);
  line-height: 1.02;
  letter-spacing: -.052em;
}

.blue-platform-hero .home-lead {
  max-width: 660px;
  margin-top: 18px;
  font-size: clamp(16px, 1.22vw, 19px);
  line-height: 1.52;
}

.blue-platform-hero .home-hero-actions {
  margin-top: 22px;
}

.blue-platform-hero .compliance-trust-line {
  margin-top: 18px;
}

.hero-showcase-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  margin-left: auto;
}

.showcase-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 22%, rgba(45, 101, 243, .10), transparent 13rem),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(239,246,255,.94));
  color: #071A3D;
  box-shadow: 0 28px 78px rgba(0, 13, 42, .24);
}

.showcase-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #60A5FA, #20B486, #F59E0B);
}

.showcase-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: 78px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(45, 101, 243, .07);
  pointer-events: none;
}

.showcase-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid #D9E7FF;
  border-radius: 22px;
  background: rgba(255,255,255,.88);
}

.showcase-kicker {
  display: block;
  color: #0E9F6E;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.showcase-topbar strong {
  display: block;
  margin-top: 5px;
  color: #071A3D;
  font-size: 17px;
  line-height: 1.22;
  letter-spacing: -.02em;
}

.showcase-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #EAFBF3;
  color: #047857;
  font-size: 12px;
  font-weight: 950;
}

.showcase-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.14);
}

.showcase-document-stage {
  position: relative;
  z-index: 2;
  min-height: 270px;
  margin-top: 16px;
  border: 1px solid #D9E7FF;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(235,243,255,.62)),
    radial-gradient(circle at 80% 18%, rgba(96, 165, 250, .16), transparent 11rem);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.showcase-sheet {
  position: absolute;
  border-radius: 22px;
  border: 1px solid #D4E3FF;
  background: #FFFFFF;
}

.sheet-back {
  inset: 42px 42px 40px 58px;
  transform: rotate(-4deg);
  background:
    repeating-linear-gradient(180deg, #FFFFFF 0 24px, #F2F6FF 25px 26px);
  opacity: .72;
}

.sheet-front {
  left: 54px;
  right: 54px;
  top: 42px;
  bottom: 36px;
  padding: 18px;
  box-shadow: 0 22px 48px rgba(12, 44, 109, .13);
}

.sheet-front::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(45,101,243,.18);
  border-radius: 17px;
  pointer-events: none;
}

.sheet-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.sheet-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: #EAF1FF;
  color: #1557D7;
  font-size: 10px;
  font-weight: 950;
}

.sheet-head strong,
.sheet-head small {
  display: block;
}

.sheet-head strong {
  color: #071A3D;
  font-size: 15px;
  line-height: 1.15;
}

.sheet-head small {
  margin-top: 3px;
  color: #64748B;
  font-size: 11px;
  font-weight: 800;
}

.sheet-head em {
  padding: 7px 10px;
  border-radius: 999px;
  background: #ECFDF5;
  color: #047857;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sheet-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 18px 0 14px;
}

.sheet-lines span {
  height: 8px;
  border-radius: 999px;
  background: #E6EEFF;
}

.sheet-lines span:nth-child(1) { width: 88%; }
.sheet-lines span:nth-child(2) { width: 70%; }
.sheet-lines span:nth-child(3) { width: 54%; }
.sheet-lines span:nth-child(4) { width: 40%; }

.sheet-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sheet-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #EEF5FF;
  color: #15345D;
  font-size: 10px;
  font-weight: 950;
}

.showcase-mini-card {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 3px;
  min-width: 130px;
  padding: 13px;
  border: 1px solid #D4E3FF;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 44px rgba(12,44,109,.14);
}

.showcase-mini-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: #EAF1FF;
  color: #1557D7;
  font-size: 10px;
  font-weight: 950;
}

.showcase-mini-card strong {
  color: #071A3D;
  font-size: 13px;
  line-height: 1.15;
}

.showcase-mini-card small {
  color: #64748B;
  font-size: 10px;
  font-weight: 850;
}

.card-salary {
  right: 16px;
  top: 84px;
}

.card-hr {
  left: 18px;
  bottom: 28px;
}

.showcase-bottom-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.showcase-bottom-row a {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid #DDE9FF;
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  text-align: center;
  color: #15345D;
}

.showcase-bottom-row strong,
.showcase-bottom-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-bottom-row strong {
  color: #1557D7;
  font-size: 16px;
  line-height: 1.1;
}

.showcase-bottom-row span {
  margin-top: 3px;
  color: #64748B;
  font-size: 10px;
  font-weight: 850;
}

@media (min-width: 1400px) {
  .container {
    width: min(100% - 72px, var(--container));
  }
}

@media (max-width: 1100px) {
  .blue-platform-hero .compliance-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-showcase-panel {
    width: min(100%, 660px);
    margin-inline: auto;
  }
}

@media (max-width: 820px) {
  .blue-platform-hero {
    padding: 34px 0 36px;
  }

  .blue-platform-hero h1 {
    font-size: clamp(32px, 9.2vw, 48px);
  }
}

@media (max-width: 640px) {
  :root {
    --container: 1160px;
    --container-wide: 1240px;
  }

  .hero-showcase-panel {
    width: 100%;
    margin-inline: 0;
  }

  .showcase-card {
    padding: 15px;
    border-radius: 24px;
  }

  .showcase-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase-status {
    width: max-content;
  }

  .showcase-document-stage {
    min-height: auto;
    padding: 14px;
  }

  .showcase-sheet,
  .sheet-back,
  .sheet-front,
  .showcase-mini-card {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
  }

  .sheet-back {
    display: none;
  }

  .sheet-front {
    padding: 14px;
  }

  .sheet-head {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .sheet-logo {
    width: 38px;
    height: 38px;
  }

  .sheet-head em {
    grid-column: 1 / -1;
    width: max-content;
  }

  .showcase-mini-card {
    min-width: 0;
    margin-top: 10px;
    box-shadow: 0 12px 28px rgba(12,44,109,.10);
  }

  .showcase-bottom-row {
    grid-template-columns: 1fr;
  }
}

/* Phase 3D-K: Clean document-stack hero visual
   Goals: replace the busy right-side card with a professional document stack,
   reduce hero top spacing, and keep the blue homepage theme mobile-safe. */
.blue-platform-hero {
  min-height: 0;
  padding: clamp(24px, 3.1vw, 42px) 0 clamp(38px, 4vw, 56px);
}

.blue-platform-hero .compliance-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  align-items: center;
  gap: clamp(30px, 4vw, 54px);
}

.blue-platform-hero .home-badge {
  padding: 7px 13px;
  font-size: 10.5px;
}

.blue-platform-hero h1 {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: clamp(38px, 3.75vw, 58px);
  line-height: 1.03;
  letter-spacing: -.048em;
}

.blue-platform-hero .home-lead {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.55;
}

.blue-platform-hero .home-hero-actions {
  margin: 22px 0 0;
}

.blue-platform-hero .compliance-trust-line {
  margin-top: 18px;
}

.hero-document-stack {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  margin-left: auto;
}

.document-stack-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 10%, rgba(96, 165, 250, .10), transparent 12rem),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(239,246,255,.94));
  color: #071A3D;
  box-shadow:
    0 30px 80px rgba(0, 13, 42, .24),
    0 1px 0 rgba(255,255,255,.85) inset;
}

.document-stack-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #60A5FA, #20B486, #F59E0B);
}

.document-stack-card::after {
  content: "";
  position: absolute;
  right: -58px;
  top: 48px;
  width: 185px;
  height: 185px;
  border-radius: 999px;
  background: rgba(45, 101, 243, .075);
  pointer-events: none;
}

.document-stack-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  padding: 14px 14px 15px;
  border: 1px solid #D9E7FF;
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 14px 34px rgba(12, 44, 109, .07);
}

.stack-kicker {
  display: block;
  grid-column: 1 / -1;
  color: #0E9F6E;
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: .085em;
  line-height: 1;
  text-transform: uppercase;
}

.document-stack-head strong {
  display: block;
  color: #071A3D;
  font-size: 17px;
  line-height: 1.22;
  letter-spacing: -.02em;
}

.stack-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #EAFBF3;
  color: #047857;
  font-size: 11px;
  font-weight: 950;
}

.stack-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.14);
}

.document-stack-visual {
  position: relative;
  z-index: 1;
  min-height: 300px;
  margin: 16px 0 14px;
  border: 1px solid #D9E7FF;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(235,243,255,.64)),
    radial-gradient(circle at 78% 18%, rgba(96, 165, 250, .14), transparent 12rem);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}

.document-layer {
  position: absolute;
  display: block;
  border: 1px solid #D4E3FF;
  border-radius: 24px;
  background: #FFFFFF;
}

.document-layer-back {
  inset: 38px 48px 46px 58px;
  transform: rotate(-5deg);
  opacity: .58;
  background:
    repeating-linear-gradient(180deg, #FFFFFF 0 22px, #F0F5FF 23px 24px);
}

.document-layer-mid {
  inset: 48px 38px 34px 48px;
  transform: rotate(4deg);
  opacity: .72;
  background:
    repeating-linear-gradient(180deg, #FFFFFF 0 22px, #F4F8FF 23px 24px);
}

.document-layer-front {
  inset: 40px 34px 30px 34px;
  padding: 18px;
  box-shadow: 0 22px 52px rgba(12, 44, 109, .14);
}

.document-layer-front::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(45,101,243,.17);
  border-radius: 18px;
  pointer-events: none;
}

.document-front-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.document-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: #EAF1FF;
  color: #1557D7;
  font-size: 10px;
  font-weight: 950;
}

.document-front-top strong,
.document-front-top small {
  display: block;
}

.document-front-top strong {
  color: #071A3D;
  font-size: 15px;
  line-height: 1.16;
}

.document-front-top small {
  margin-top: 3px;
  color: #64748B;
  font-size: 11px;
  font-weight: 800;
}

.document-front-top em {
  padding: 6px 9px;
  border-radius: 999px;
  background: #ECFDF5;
  color: #047857;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.document-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 18px 0 15px;
}

.document-lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #E6EEFF;
}

.document-lines span:nth-child(1) { width: 90%; }
.document-lines span:nth-child(2) { width: 76%; }
.document-lines span:nth-child(3) { width: 58%; }
.document-lines span:nth-child(4) { width: 42%; }

.document-output-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.document-output-list span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #E1EAFF;
  border-radius: 14px;
  background: #F6FAFF;
}

.document-output-list b,
.document-output-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-output-list b {
  color: #15345D;
  font-size: 11px;
  font-weight: 950;
}

.document-output-list small {
  margin-top: 3px;
  color: #64748B;
  font-size: 10px;
  font-weight: 850;
}

.document-stack-meta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.document-stack-meta span {
  min-width: 0;
  padding: 11px 9px;
  border: 1px solid #DDE9FF;
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  color: #1557D7;
  text-align: center;
  font-size: 11px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .blue-platform-hero .compliance-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-document-stack {
    width: min(100%, 620px);
    margin-inline: auto;
  }
}

@media (max-width: 820px) {
  .blue-platform-hero {
    padding: 30px 0 36px;
  }
}

@media (max-width: 640px) {
  .hero-document-stack {
    width: 100%;
    margin-inline: 0;
  }

  .document-stack-card {
    padding: 15px;
    border-radius: 24px;
  }

  .document-stack-head {
    grid-template-columns: minmax(0, 1fr);
    padding: 13px;
  }

  .stack-status {
    width: max-content;
  }

  .document-stack-visual {
    min-height: auto;
    padding: 14px;
  }

  .document-layer,
  .document-layer-back,
  .document-layer-mid,
  .document-layer-front {
    position: relative;
    inset: auto;
    transform: none;
  }

  .document-layer-back,
  .document-layer-mid {
    display: none;
  }

  .document-layer-front {
    padding: 14px;
  }

  .document-front-top {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .document-logo {
    width: 38px;
    height: 38px;
  }

  .document-front-top em {
    grid-column: 1 / -1;
    width: max-content;
  }

  .document-output-list,
  .document-stack-meta {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------
   Phase 3D-L: Locked light compliance desk homepage theme
   Scope: Homepage only. Keeps header/footer and dynamic home IDs intact.
------------------------------------------------------------------- */
body:has(.light-workspace-home) {
  background: #f8fbff;
}

.light-workspace-home {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(37, 99, 235, .10), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 44%, #f1f7ff 100%);
}

.light-workspace-home .container {
  max-width: min(1320px, calc(100vw - 48px));
}

.light-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(54px, 5.4vw, 84px) 0 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .93) 44%, rgba(234, 242, 255, .72) 100%);
  border-bottom: 1px solid rgba(203, 216, 239, .72);
}

.light-hero-bg,
.light-hero-bg span {
  position: absolute;
  pointer-events: none;
}

.light-hero-bg {
  inset: 0;
  overflow: hidden;
  z-index: -1;
  background:
    radial-gradient(circle at 88% 45%, rgba(37, 99, 235, .12), transparent 22rem),
    radial-gradient(circle at 46% 100%, rgba(16, 185, 129, .06), transparent 21rem),
    linear-gradient(90deg, transparent 0, rgba(37, 99, 235, .035) 100%);
}

.bg-paper {
  width: 170px;
  height: 230px;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 18px;
  background:
    repeating-linear-gradient(180deg, rgba(15, 31, 77, .06) 0 2px, transparent 2px 21px),
    rgba(255, 255, 255, .28);
  opacity: .55;
}

.bg-paper-left {
  left: -42px;
  top: 28%;
  transform: rotate(-22deg);
}

.bg-paper-right {
  right: 6%;
  top: 8%;
  transform: rotate(-8deg);
}

.bg-scale {
  left: 50%;
  top: 16%;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  border: 1px solid rgba(15, 31, 77, .07);
}

.bg-scale::before {
  content: "⚖";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(15, 31, 77, .08);
  font-size: 44px;
}

.bg-arc {
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, .08);
}

.bg-arc-one {
  width: 340px;
  height: 340px;
  right: 10%;
  bottom: 8%;
}

.bg-arc-two {
  width: 240px;
  height: 240px;
  left: 36%;
  bottom: -120px;
}

.bg-dot-field {
  right: 16%;
  top: 18%;
  width: 180px;
  height: 150px;
  opacity: .25;
  background-image: radial-gradient(rgba(37, 99, 235, .28) 1px, transparent 1px);
  background-size: 14px 14px;
}

.light-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(420px, .86fr);
  gap: clamp(34px, 5vw, 86px);
  align-items: center;
}

.light-hero-copy {
  max-width: 670px;
  padding: clamp(18px, 2vw, 32px) 0 clamp(52px, 5vw, 82px);
}

.light-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  color: #2563eb;
  font-weight: 800;
  font-size: .86rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .10);
}

.light-hero-copy h1 {
  margin: 26px 0 20px;
  font-size: clamp(2.7rem, 5.25vw, 5.75rem);
  line-height: .98;
  letter-spacing: -.065em;
  color: #071a3d;
  max-width: 760px;
}

.light-hero-copy h1 span {
  color: #2563eb;
  text-shadow: 0 18px 46px rgba(37, 99, 235, .17);
}

.light-hero-lead {
  margin: 0;
  max-width: 640px;
  color: #53637f;
  font-size: clamp(1.05rem, 1.45vw, 1.32rem);
  line-height: 1.62;
}

.light-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.light-hero-actions .btn {
  min-height: 54px;
  padding-inline: 24px;
  border-radius: 15px;
  box-shadow: none;
}

.light-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  box-shadow: 0 18px 40px rgba(37, 99, 235, .22) !important;
}

.light-secondary {
  color: #2563eb !important;
  border-color: rgba(37, 99, 235, .38) !important;
  background: rgba(255, 255, 255, .74) !important;
}

.light-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(100, 116, 139, .18);
  color: #475569;
  font-weight: 700;
}

.light-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 24px;
  border-right: 1px solid rgba(100, 116, 139, .18);
}

.light-trust-row span:first-child {
  padding-left: 0;
}

.light-trust-row span:last-child {
  border-right: 0;
}

.light-trust-row span::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  color: #fff;
  background: #16a34a;
  font-size: .78rem;
  box-shadow: 0 8px 18px rgba(22, 163, 74, .22);
}

.light-desk-visual {
  position: relative;
  min-height: 590px;
  align-self: end;
}

.desk-folder {
  position: absolute;
  right: 14px;
  top: 72px;
  width: 460px;
  height: 440px;
  border-radius: 42px;
  transform: rotate(-4deg);
  background: linear-gradient(145deg, #b8d9ff, #4f9ce8);
  box-shadow: 0 36px 90px rgba(37, 99, 235, .20);
  opacity: .88;
}

.desk-folder::before {
  content: "";
  position: absolute;
  left: 38px;
  top: -28px;
  width: 180px;
  height: 72px;
  border-radius: 28px 28px 0 0;
  background: #d8ebff;
}

.desk-sheet {
  position: absolute;
  display: block;
  width: 330px;
  height: 410px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(203, 216, 239, .74);
  box-shadow: 0 30px 70px rgba(15, 31, 77, .12);
}

.desk-sheet-back {
  right: 310px;
  top: 165px;
  transform: rotate(-10deg);
  background:
    repeating-linear-gradient(180deg, rgba(15, 31, 77, .08) 0 7px, transparent 7px 28px),
    #f9fbff;
}

.desk-sheet-mid {
  right: 252px;
  top: 240px;
  transform: rotate(-13deg);
  background: linear-gradient(180deg, #fff7e6, #fff);
}

.desk-main-document {
  position: absolute;
  right: 30px;
  top: 95px;
  width: min(470px, 100%);
  min-height: 440px;
  padding: 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(203, 216, 239, .92);
  box-shadow: 0 34px 100px rgba(15, 31, 77, .18);
  backdrop-filter: blur(10px);
}

.desk-doc-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.desk-doc-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(37, 99, 235, .30);
}

.desk-doc-head strong {
  display: block;
  color: #071a3d;
  font-size: 1.45rem;
  line-height: 1.12;
}

.desk-doc-head small {
  color: #53637f;
  font-weight: 700;
}

.desk-doc-head em {
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 999px;
  color: #166534;
  background: #dcfce7;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  font-style: normal;
}

.desk-doc-table {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr;
  gap: 9px;
  margin-top: 34px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(203, 216, 239, .68);
  border-bottom: 1px solid rgba(203, 216, 239, .68);
}

.desk-doc-table span {
  height: 12px;
  border-radius: 999px;
  background: #e4ecfa;
}

.desk-doc-table span:nth-child(3n+1) {
  background: #d8e5f8;
}

.desk-doc-lines {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.desk-doc-lines span {
  height: 11px;
  border-radius: 999px;
  background: #e2ebf8;
}

.desk-doc-lines span:nth-child(1) { width: 86%; }
.desk-doc-lines span:nth-child(2) { width: 74%; }
.desk-doc-lines span:nth-child(3) { width: 66%; }
.desk-doc-lines span:nth-child(4) { width: 44%; }

.desk-doc-status {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.desk-doc-status span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #e2ebf8;
}

.desk-doc-status b {
  color: #071a3d;
}

.desk-doc-status small {
  color: #16a34a;
  font-weight: 900;
}

.desk-stamp {
  position: absolute;
  right: 28px;
  bottom: 190px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #2563eb;
  border: 4px solid rgba(37, 99, 235, .78);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .82rem;
  transform: rotate(-13deg);
  background: rgba(255, 255, 255, .72);
}

.desk-mini-card {
  position: absolute;
  z-index: 2;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .90);
  border: 1px solid rgba(203, 216, 239, .92);
  box-shadow: 0 24px 54px rgba(15, 31, 77, .13);
  backdrop-filter: blur(10px);
}

.desk-mini-card strong {
  display: block;
  color: #071a3d;
  font-size: 1rem;
}

.desk-mini-card span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-weight: 800;
  font-size: .84rem;
}

.desk-salary {
  right: 0;
  top: 314px;
}

.desk-hr {
  right: 350px;
  top: 290px;
}

.desk-legal {
  right: 250px;
  top: 425px;
}

.light-proof-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 0;
  transform: translateY(44px);
  padding: 20px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .90);
  border: 1px solid rgba(203, 216, 239, .86);
  box-shadow: 0 26px 74px rgba(15, 31, 77, .11);
  backdrop-filter: blur(12px);
}

.light-proof-strip div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 8px 26px;
  border-right: 1px solid rgba(100, 116, 139, .15);
}

.light-proof-strip div:last-child {
  border-right: 0;
}

.light-proof-strip div::before {
  content: "";
  width: 44px;
  height: 44px;
  grid-row: 1 / span 2;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .16), rgba(37, 99, 235, .06)),
    #f8fbff;
  border: 1px solid rgba(37, 99, 235, .14);
}

.light-proof-strip span {
  color: #071a3d;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.15;
}

.light-proof-strip small {
  color: #64748b;
  font-weight: 700;
}

.light-workspace-home .home-section {
  position: relative;
  padding-top: clamp(74px, 7vw, 104px);
  background: transparent;
}

.light-workspace-home .home-section-head {
  border-radius: 26px;
}

.light-workspace-home .section-kicker {
  background: rgba(37, 99, 235, .08);
  color: #2563eb;
  border-color: rgba(37, 99, 235, .12);
}

.light-workspace-home .home-card-grid .card,
.light-workspace-home .home-trust-grid article {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(203, 216, 239, .92);
  box-shadow: 0 22px 54px rgba(15, 31, 77, .08);
}

.light-workspace-home .home-card-grid .card:hover,
.light-workspace-home .home-trust-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 72px rgba(15, 31, 77, .12);
}

.light-workspace-home .home-card-grid .card::after {
  opacity: .08;
}

.light-final-card {
  background:
    radial-gradient(circle at 86% 20%, rgba(37, 99, 235, .18), transparent 22rem),
    linear-gradient(135deg, #071a3d, #123f8c) !important;
}

@media (max-width: 1100px) {
  .light-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .light-hero-copy {
    padding-bottom: 8px;
  }

  .light-desk-visual {
    min-height: 560px;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
  }

  .desk-folder,
  .desk-main-document {
    right: 50%;
    transform: translateX(50%);
  }

  .desk-folder {
    transform: translateX(50%) rotate(-4deg);
  }

  .desk-sheet-back { right: 52%; }
  .desk-sheet-mid { right: 42%; }
  .desk-hr { right: auto; left: 3%; }
  .desk-legal { right: auto; left: 24%; }
  .desk-salary { right: 2%; }

  .light-proof-strip {
    grid-template-columns: repeat(2, 1fr);
    transform: translateY(34px);
  }

  .light-proof-strip div:nth-child(2) {
    border-right: 0;
  }

  .light-proof-strip div:nth-child(-n+2) {
    border-bottom: 1px solid rgba(100, 116, 139, .15);
  }
}

@media (max-width: 720px) {
  .light-workspace-home .container {
    max-width: min(100% - 28px, 1320px);
  }

  .light-hero {
    padding-top: 36px;
  }

  .light-hero-copy h1 {
    font-size: clamp(2.35rem, 11.5vw, 3.65rem);
    letter-spacing: -.055em;
  }

  .light-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .light-trust-row {
    gap: 10px 14px;
    border-top: 0;
    padding-top: 0;
  }

  .light-trust-row span,
  .light-trust-row span:first-child {
    width: 100%;
    padding: 0;
    border-right: 0;
  }

  .light-desk-visual {
    min-height: 480px;
    overflow: visible;
  }

  .desk-folder {
    width: 82vw;
    height: 330px;
    top: 78px;
  }

  .desk-sheet,
  .desk-mini-card,
  .desk-stamp {
    display: none;
  }

  .desk-main-document {
    top: 48px;
    width: min(92vw, 390px);
    min-height: 390px;
    padding: 22px;
    border-radius: 24px;
  }

  .desk-doc-head {
    gap: 12px;
  }

  .desk-doc-icon {
    width: 48px;
    height: 48px;
    font-size: .86rem;
  }

  .desk-doc-head strong {
    font-size: 1.18rem;
  }

  .desk-doc-head em {
    display: none;
  }

  .desk-doc-status span {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .light-proof-strip {
    grid-template-columns: 1fr;
    transform: translateY(24px);
    padding: 14px;
  }

  .light-proof-strip div,
  .light-proof-strip div:nth-child(2),
  .light-proof-strip div:nth-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid rgba(100, 116, 139, .15);
    padding: 14px;
  }

  .light-proof-strip div:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .light-workspace-home .home-card-grid .card,
  .light-workspace-home .home-trust-grid article {
    transition: none !important;
  }
}

/* Phase 3D-M: Locked light mockup homepage implementation */
.home-pro.light-workspace-home,
.home-pro.mockup-home {
  background:
    linear-gradient(180deg, #f8fbff 0%, #ffffff 34%, #f4f8ff 100%);
  overflow-x: clip;
}

.mockup-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 28%, rgba(37, 99, 235, .12), transparent 34rem),
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, .06), transparent 28rem),
    linear-gradient(120deg, #ffffff 0%, #f8fbff 42%, #eef6ff 100%);
  padding: clamp(64px, 7vw, 92px) 0 clamp(46px, 6vw, 76px);
  border-bottom: 1px solid rgba(188, 207, 238, .72);
}

.mockup-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .55;
  background-image:
    linear-gradient(rgba(37, 99, 235, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.mockup-hero-bg,
.mockup-hero-bg span {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.mh-doc-line {
  width: 210px;
  height: 250px;
  border: 1px solid rgba(37, 99, 235, .11);
  border-radius: 24px;
  transform: rotate(-26deg);
  opacity: .55;
}

.mh-doc-line::before,
.mh-doc-line::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  height: 2px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .12);
}

.mh-doc-line::before { top: 66px; box-shadow: 0 26px rgba(37, 99, 235, .10), 0 52px rgba(37, 99, 235, .08); }
.mh-doc-line::after { bottom: 54px; width: 90px; right: auto; }
.mh-doc-left { left: -52px; top: 112px; }

.mh-legal-scale {
  width: 78px;
  height: 78px;
  left: 51%;
  top: 74px;
  opacity: .18;
  background:
    linear-gradient(90deg, transparent 47%, #2563eb 48%, #2563eb 52%, transparent 53%),
    radial-gradient(circle at 50% 20%, transparent 0 8px, #2563eb 9px 10px, transparent 11px),
    linear-gradient(#2563eb, #2563eb) center 30px / 66px 2px no-repeat;
  border-bottom: 2px solid rgba(37, 99, 235, .62);
}

.mh-ring {
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 50%;
}
.mh-ring-one { width: 170px; height: 170px; right: -44px; top: -20px; }
.mh-ring-two { width: 130px; height: 130px; right: 46%; bottom: 128px; opacity: .5; }

.mh-dot-grid {
  right: 5%;
  top: 96px;
  width: 150px;
  height: 150px;
  opacity: .24;
  background-image: radial-gradient(rgba(37, 99, 235, .28) 1px, transparent 1.5px);
  background-size: 16px 16px;
}

.mockup-hero-grid {
  width: min(1440px, 88%);
  display: grid;
  grid-template-columns: minmax(420px, .96fr) minmax(520px, .92fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

.mockup-hero-copy {
  max-width: 650px;
}

.mockup-hero-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 28px;
  padding: 12px 20px;
  border-radius: 999px;
  color: #1d4ed8;
  background: linear-gradient(180deg, rgba(226, 238, 255, .96), rgba(238, 246, 255, .92));
  border: 1px solid rgba(191, 212, 247, .8);
  box-shadow: 0 10px 26px rgba(37, 99, 235, .07);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mockup-hero h1 {
  margin: 0 0 24px;
  color: #07183d;
  font-size: clamp(44px, 5.4vw, 74px);
  line-height: .98;
  letter-spacing: -.065em;
  max-width: 760px;
}

.mockup-hero h1 span {
  color: #2563eb;
  white-space: normal;
}

.mockup-hero-lead {
  margin: 0 0 34px;
  max-width: 650px;
  color: #4d5f7e;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.58;
}

.mockup-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 34px;
}

.mockup-primary,
.mockup-secondary {
  min-height: 58px;
  border-radius: 16px;
  padding-inline: 28px;
  font-weight: 850;
  box-shadow: 0 16px 38px rgba(37, 99, 235, .18);
}

.mockup-primary {
  background: linear-gradient(135deg, #0b5cff, #1d4ed8);
  border: 1px solid rgba(29, 78, 216, .88);
}

.mockup-secondary {
  background: rgba(255, 255, 255, .82);
  color: #1354d6;
  border: 1px solid rgba(37, 99, 235, .55);
  box-shadow: 0 14px 34px rgba(15, 30, 61, .06);
}

.mockup-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  max-width: 650px;
  padding-top: 18px;
  border-top: 1px solid rgba(189, 207, 235, .72);
}

.mockup-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #425572;
  font-size: 15px;
  font-weight: 720;
  padding: 4px 24px 4px 0;
  margin-right: 24px;
  border-right: 1px solid rgba(189, 207, 235, .72);
}

.mockup-trust-row span:last-child {
  border-right: 0;
  margin-right: 0;
}

.mockup-trust-row span::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg width='22' height='22' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='9' fill='%23EFF6FF' stroke='%232563EB' stroke-width='1.5'/%3E%3Cpath d='M7 11.2l2.4 2.4L15.4 8' fill='none' stroke='%232563EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mockup-hero-visual {
  position: relative;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-hero-visual::before {
  content: "";
  position: absolute;
  width: 92%;
  height: 80%;
  right: 3%;
  top: 12%;
  z-index: -1;
  border-radius: 42% 58% 48% 52%;
  background: radial-gradient(circle, rgba(37, 99, 235, .12), rgba(37, 99, 235, 0) 68%);
}

.mockup-hero-visual img {
  width: min(100%, 700px);
  display: block;
  object-fit: contain;
  border-radius: 24px;
  filter: drop-shadow(0 30px 50px rgba(15, 30, 61, .16));
}

.mockup-proof-strip {
  width: min(1400px, 88%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 0;
  margin-top: clamp(32px, 5vw, 60px);
  padding: 28px 34px;
  border: 1px solid rgba(203, 218, 242, .88);
  border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 22px 58px rgba(15, 30, 61, .09);
  backdrop-filter: blur(12px);
}

.mockup-proof-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  align-items: center;
  min-height: 66px;
  padding-inline: 22px;
  border-right: 1px solid rgba(203, 218, 242, .9);
}

.mockup-proof-item:first-child { padding-left: 0; }
.mockup-proof-item:last-child { border-right: 0; padding-right: 0; }

.mockup-proof-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #2563eb;
  background: linear-gradient(180deg, #f8fbff, #eaf2ff);
  border: 1px solid rgba(191, 212, 247, .9);
  font-size: 24px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .08);
}

.mockup-proof-item strong {
  color: #07183d;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1;
  letter-spacing: -.035em;
}

.mockup-proof-item small {
  margin-top: 4px;
  color: #64748b;
  font-size: 15px;
  font-weight: 650;
}

/* Align the rest of homepage with the locked light mockup */
.light-workspace-home .home-section,
.home-pro .home-section {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.light-workspace-home .home-section:nth-of-type(even),
.home-pro .home-section:nth-of-type(even) {
  background: #ffffff;
}

.home-card-grid > .card,
.home-card-grid > article,
.home-trust-grid article {
  border-color: rgba(203, 218, 242, .84);
  box-shadow: 0 18px 46px rgba(15, 30, 61, .07);
}

@media (max-width: 1180px) {
  .mockup-hero-grid {
    width: min(1180px, 92%);
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .mockup-hero-copy {
    max-width: 820px;
  }
  .mockup-hero h1 {
    max-width: 860px;
  }
  .mockup-hero-visual img {
    max-width: 680px;
  }
  .mockup-proof-strip {
    width: min(1180px, 92%);
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .mockup-proof-item {
    border-right: 0;
    padding: 16px;
    border-radius: 18px;
    background: rgba(248, 251, 255, .82);
  }
}

@media (max-width: 768px) {
  .mockup-hero {
    padding: 42px 0 34px;
  }
  .mockup-hero-grid,
  .mockup-proof-strip {
    width: min(100% - 32px, 640px);
  }
  .mockup-hero-badge {
    margin-bottom: 18px;
    font-size: 12px;
    padding: 9px 14px;
  }
  .mockup-hero h1 {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.02;
    letter-spacing: -.055em;
    margin-bottom: 18px;
  }
  .mockup-hero-lead {
    font-size: 16px;
    line-height: 1.56;
    margin-bottom: 24px;
  }
  .mockup-hero-actions {
    gap: 12px;
    margin-bottom: 24px;
  }
  .mockup-primary,
  .mockup-secondary {
    width: 100%;
    min-height: 52px;
    justify-content: center;
  }
  .mockup-trust-row {
    gap: 10px;
    border-top: 0;
    padding-top: 0;
  }
  .mockup-trust-row span {
    border-right: 0;
    margin-right: 0;
    padding: 0;
    width: 100%;
    font-size: 14px;
  }
  .mockup-hero-visual {
    margin-top: 4px;
  }
  .mockup-hero-visual img {
    width: min(100%, 560px);
    filter: drop-shadow(0 18px 34px rgba(15, 30, 61, .12));
  }
  .mockup-proof-strip {
    grid-template-columns: 1fr;
    margin-top: 28px;
    padding: 18px;
    border-radius: 20px;
  }
  .mockup-proof-item {
    grid-template-columns: 48px 1fr;
    padding: 12px;
  }
  .mockup-proof-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 20px;
  }
  .mockup-proof-item strong {
    font-size: 24px;
  }
  .mockup-proof-item small {
    font-size: 14px;
  }
  .mh-legal-scale,
  .mh-dot-grid {
    display: none;
  }
}

@media (max-width: 420px) {
  .mockup-hero-grid,
  .mockup-proof-strip {
    width: min(100% - 24px, 420px);
  }
  .mockup-hero h1 {
    font-size: 34px;
  }
  .mockup-hero-visual img {
    width: 115%;
    max-width: none;
    margin-left: -7.5%;
  }
}


/* Phase 3D-N: Integrated native hero visual refinement */
.mockup-hero-grid {
  grid-template-columns: minmax(420px, .95fr) minmax(520px, .92fr);
}

.native-doc-visual {
  min-height: clamp(470px, 40vw, 610px);
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.native-doc-visual::before {
  width: 86%;
  height: 72%;
  right: 1%;
  top: 16%;
  background:
    radial-gradient(circle at 55% 45%, rgba(37, 99, 235, .16), rgba(37, 99, 235, 0) 68%),
    radial-gradient(circle at 28% 70%, rgba(16, 185, 129, .08), rgba(16, 185, 129, 0) 58%);
}

.native-doc-stage {
  position: relative;
  width: min(100%, 650px);
  min-height: clamp(430px, 36vw, 560px);
  transform: translateZ(0);
}

.native-folder {
  position: absolute;
  display: block;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(12, 35, 78, .18);
  pointer-events: none;
}

.folder-back {
  width: 440px;
  height: 520px;
  right: 24px;
  top: 18px;
  background: linear-gradient(145deg, #1d4ed8 0%, #60a5fa 100%);
  transform: rotate(9deg);
  opacity: .92;
}

.folder-front {
  width: 480px;
  height: 500px;
  right: 82px;
  top: 54px;
  background: linear-gradient(145deg, #dbeafe 0%, #ffffff 45%, #bfdbfe 100%);
  transform: rotate(-7deg);
  opacity: .88;
  border: 1px solid rgba(147, 197, 253, .55);
}

.native-paper {
  position: absolute;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .95));
  border: 1px solid rgba(203, 218, 242, .92);
  box-shadow: 0 24px 54px rgba(15, 30, 61, .13);
  color: #07183d;
}

.native-invoice {
  width: min(480px, 76%);
  min-height: 430px;
  right: 84px;
  top: 52px;
  border-radius: 26px;
  padding: 36px 34px;
  transform: rotate(1.5deg);
  z-index: 5;
}

.native-invoice::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 20px;
  border: 1px dashed rgba(147, 197, 253, .72);
  pointer-events: none;
}

.native-paper-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.native-logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(145deg, #1d4ed8, #38bdf8);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .24);
}

.native-doc-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1;
  font-weight: 850;
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(15, 30, 61, .08);
}

.native-doc-label.blue { color: #1d4ed8; background: #eaf2ff; border-color: #bfdbfe; }
.native-doc-label.green { color: #047857; background: #e9fbf3; border-color: #bbf7d0; }
.native-doc-label.amber { color: #92400e; background: #fff7e6; border-color: #fde68a; }
.native-doc-label.violet { color: #6d28d9; background: #f3e8ff; border-color: #ddd6fe; }

.native-invoice h3 {
  margin: 0 0 24px;
  font-size: 28px;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.native-lines {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.native-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dbeafe, #eef4ff);
}
.native-lines span:nth-child(1) { width: 88%; }
.native-lines span:nth-child(2) { width: 74%; }
.native-lines span:nth-child(3) { width: 58%; }
.native-lines span:nth-child(4) { width: 40%; }

.native-table {
  display: grid;
  grid-template-columns: 1.3fr .8fr .7fr;
  gap: 8px;
  margin-top: 34px;
  position: relative;
  z-index: 2;
}
.native-table span {
  height: 42px;
  border-radius: 12px;
  background: rgba(239, 246, 255, .92);
  border: 1px solid rgba(203, 218, 242, .76);
}

.native-stamp {
  position: absolute;
  right: 28px;
  bottom: 30px;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #047857;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: rotate(-13deg);
  border: 4px solid rgba(16, 185, 129, .72);
  background:
    radial-gradient(circle, rgba(236, 253, 245, .92) 0 48%, transparent 49%),
    rgba(255, 255, 255, .78);
  box-shadow: 0 16px 32px rgba(5, 150, 105, .18);
  z-index: 6;
}
.native-stamp::after {
  content: "✓";
  position: absolute;
  font-size: 34px;
  bottom: 18px;
  color: #059669;
}

.native-salary,
.native-hr,
.native-legal {
  width: 270px;
  min-height: 154px;
  border-radius: 22px;
  padding: 24px;
  z-index: 7;
}

.native-salary {
  right: 0;
  top: 236px;
  transform: rotate(2deg);
}

.native-hr {
  left: 18px;
  top: 255px;
  transform: rotate(-4deg);
}

.native-legal {
  left: 156px;
  bottom: 18px;
  transform: rotate(-2deg);
}

.native-salary strong,
.native-hr strong,
.native-legal strong {
  display: block;
  margin: 16px 0 12px;
  font-size: 20px;
  letter-spacing: -.02em;
}

.native-lines.small {
  gap: 8px;
}
.native-lines.small span {
  height: 7px;
}
.native-lines.small span:nth-child(1) { width: 92%; }
.native-lines.small span:nth-child(2) { width: 76%; }
.native-lines.small span:nth-child(3) { width: 54%; }

.native-pen {
  position: absolute;
  right: -4px;
  bottom: 38px;
  width: 12px;
  height: 190px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fafc 0%, #94a3b8 22%, #334155 52%, #e2e8f0 100%);
  transform: rotate(24deg);
  box-shadow: 0 14px 28px rgba(15, 30, 61, .22);
  z-index: 3;
}
.native-pen::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 1px;
  width: 10px;
  height: 18px;
  border-radius: 999px 999px 3px 3px;
  background: #cbd5e1;
}

.native-paperclip {
  position: absolute;
  width: 26px;
  height: 52px;
  border: 3px solid rgba(148, 163, 184, .5);
  border-radius: 999px;
  z-index: 2;
}
.native-paperclip::after {
  content: "";
  position: absolute;
  inset: 8px 6px;
  border: 2px solid rgba(148, 163, 184, .45);
  border-radius: 999px;
}
.clip-one { right: 66px; bottom: 22px; transform: rotate(18deg); }
.clip-two { right: 28px; bottom: 14px; transform: rotate(18deg); }

@media (max-width: 1180px) {
  .native-doc-visual {
    min-height: 540px;
  }
  .native-doc-stage {
    width: min(100%, 640px);
    min-height: 540px;
  }
}

@media (max-width: 768px) {
  .native-doc-visual {
    min-height: 430px;
  }
  .native-doc-stage {
    width: min(100%, 430px);
    min-height: 410px;
  }
  .folder-back {
    width: 300px;
    height: 360px;
    right: 18px;
    top: 18px;
    border-radius: 22px;
  }
  .folder-front {
    width: 315px;
    height: 342px;
    right: 56px;
    top: 44px;
    border-radius: 22px;
  }
  .native-invoice {
    width: 300px;
    min-height: 330px;
    right: 48px;
    top: 40px;
    padding: 24px 22px;
    border-radius: 22px;
  }
  .native-invoice h3 {
    font-size: 20px;
    margin-bottom: 18px;
  }
  .native-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
  .native-doc-label {
    padding: 7px 10px;
    font-size: 11px;
  }
  .native-table {
    gap: 6px;
    margin-top: 22px;
  }
  .native-table span {
    height: 30px;
    border-radius: 9px;
  }
  .native-stamp {
    width: 82px;
    height: 82px;
    right: 18px;
    bottom: 20px;
    font-size: 11px;
    border-width: 3px;
  }
  .native-stamp::after {
    font-size: 22px;
    bottom: 12px;
  }
  .native-salary,
  .native-hr,
  .native-legal {
    width: 172px;
    min-height: 104px;
    padding: 14px;
    border-radius: 16px;
  }
  .native-salary { right: 4px; top: 192px; }
  .native-hr { left: 0; top: 205px; }
  .native-legal { left: 90px; bottom: 12px; }
  .native-salary strong,
  .native-hr strong,
  .native-legal strong {
    font-size: 14px;
    margin: 10px 0 8px;
  }
  .native-lines.small span {
    height: 5px;
  }
  .native-pen,
  .native-paperclip {
    display: none;
  }
}

@media (max-width: 420px) {
  .native-doc-visual {
    min-height: 350px;
  }
  .native-doc-stage {
    width: min(100%, 350px);
    min-height: 340px;
    transform: scale(.9);
    transform-origin: center top;
  }
}


/* Phase 3D-N1: Homepage mobile cutting / overflow hotfix
   Keeps the integrated hero visual but forces safe mobile containment. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body,
.site-header,
main,
section,
.container,
.mockup-hero,
.mockup-hero-grid,
.mockup-proof-strip,
.home-section {
  max-width: 100%;
}

.mockup-hero,
.home-pro.light-workspace-home {
  overflow-x: clip;
}

.mockup-hero-grid,
.mockup-proof-strip {
  box-sizing: border-box;
}

.native-doc-visual,
.native-doc-stage,
.native-folder,
.native-paper {
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .mockup-hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(100% - 32px, 720px) !important;
    gap: 28px !important;
  }

  .mockup-hero-copy,
  .mockup-hero-lead,
  .mockup-trust-row {
    max-width: 100% !important;
  }

  .native-doc-visual {
    width: 100% !important;
    min-height: 390px !important;
    overflow: hidden !important;
    border-radius: 28px;
  }

  .native-doc-stage {
    width: min(100%, 390px) !important;
    min-height: 370px !important;
    margin: 0 auto !important;
    transform: none !important;
  }

  .folder-back {
    width: 260px !important;
    height: 315px !important;
    right: 16px !important;
    top: 18px !important;
    border-radius: 22px !important;
  }

  .folder-front {
    width: 270px !important;
    height: 300px !important;
    right: 48px !important;
    top: 44px !important;
    border-radius: 22px !important;
  }

  .native-invoice {
    width: 275px !important;
    min-height: 300px !important;
    right: 42px !important;
    top: 38px !important;
    padding: 22px 20px !important;
    border-radius: 22px !important;
  }

  .native-salary,
  .native-hr,
  .native-legal {
    width: 154px !important;
    min-height: 92px !important;
    padding: 12px !important;
    border-radius: 15px !important;
  }

  .native-salary { right: 8px !important; top: 178px !important; }
  .native-hr { left: 4px !important; top: 190px !important; }
  .native-legal { left: 92px !important; bottom: 10px !important; }
}

@media (max-width: 520px) {
  .mockup-hero {
    padding-top: 34px !important;
    padding-bottom: 28px !important;
  }

  .mockup-hero-grid,
  .mockup-proof-strip {
    width: min(100% - 24px, 440px) !important;
  }

  .mockup-hero h1 {
    font-size: clamp(31px, 9.5vw, 39px) !important;
    line-height: 1.05 !important;
    letter-spacing: -.048em !important;
  }

  .mockup-hero-lead {
    font-size: 15.5px !important;
    line-height: 1.5 !important;
  }

  .mockup-hero-actions {
    width: 100% !important;
  }

  .mockup-hero-actions .btn {
    width: 100% !important;
    min-height: 50px !important;
  }

  .mockup-trust-row {
    gap: 8px !important;
  }

  .native-doc-visual {
    min-height: 320px !important;
    margin-top: 6px !important;
  }

  .native-doc-stage {
    width: min(100%, 320px) !important;
    min-height: 310px !important;
    transform: none !important;
  }

  .folder-back {
    width: 218px !important;
    height: 262px !important;
    right: 18px !important;
    top: 14px !important;
  }

  .folder-front {
    width: 226px !important;
    height: 248px !important;
    right: 44px !important;
    top: 36px !important;
  }

  .native-invoice {
    width: 226px !important;
    min-height: 252px !important;
    right: 38px !important;
    top: 30px !important;
    padding: 18px 16px !important;
  }

  .native-invoice h3 {
    font-size: 16px !important;
    margin-bottom: 14px !important;
  }

  .native-logo-mark {
    width: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
  }

  .native-doc-label {
    padding: 6px 9px !important;
    font-size: 10px !important;
  }

  .native-lines {
    gap: 8px !important;
  }

  .native-lines span {
    height: 7px !important;
  }

  .native-table {
    gap: 5px !important;
    margin-top: 17px !important;
  }

  .native-table span {
    height: 24px !important;
  }

  .native-stamp {
    width: 66px !important;
    height: 66px !important;
    right: 14px !important;
    bottom: 14px !important;
    font-size: 9px !important;
    border-width: 2px !important;
  }

  .native-stamp::after {
    font-size: 17px !important;
    bottom: 8px !important;
  }

  .native-salary,
  .native-hr,
  .native-legal {
    width: 128px !important;
    min-height: 76px !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .native-salary strong,
  .native-hr strong,
  .native-legal strong {
    font-size: 12px !important;
    margin: 7px 0 6px !important;
  }

  .native-salary { right: 2px !important; top: 157px !important; }
  .native-hr { left: 2px !important; top: 168px !important; }
  .native-legal { left: 78px !important; bottom: 8px !important; }

  .native-pen,
  .native-paperclip,
  .mh-doc-left,
  .mh-ring-two {
    display: none !important;
  }

  .mockup-proof-strip {
    grid-template-columns: 1fr !important;
    padding: 14px !important;
    gap: 10px !important;
  }

  .mockup-proof-item {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 360px) {
  .mockup-hero-grid,
  .mockup-proof-strip {
    width: min(100% - 20px, 340px) !important;
  }

  .native-doc-stage {
    width: 292px !important;
    min-height: 292px !important;
  }

  .native-doc-visual {
    min-height: 300px !important;
  }

  .folder-back { width: 198px !important; height: 238px !important; right: 13px !important; }
  .folder-front { width: 206px !important; height: 230px !important; right: 36px !important; }
  .native-invoice { width: 206px !important; min-height: 230px !important; right: 32px !important; }

  .native-salary,
  .native-hr,
  .native-legal {
    display: none !important;
  }
}
