:root {
  --navy: #0b1f3a;
  --blue: #1d4ed8;
  --green: #16a34a;
  --slate: #334155;
  --muted: #64748b;
  --mist: #f6f8fb;
  --line: #e2e8f0;
  --warm: #f59e0b;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(11, 31, 58, 0.13);
}

/* AMS 2026 motion, assistant, portal auth and mobile refinements */
body {
  text-rendering: optimizeLegibility;
}

.header-cta,
.button,
button,
.service-card,
.article-list a,
.portal-case {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-cta:hover,
.button:hover,
button:hover,
.service-card:hover,
.article-list a:hover,
.portal-case:hover {
  transform: translateY(-3px);
}

.service-card:hover,
.article-list a:hover,
.portal-case:hover {
  border-color: rgba(29, 78, 216, 0.28);
  box-shadow: 0 18px 46px rgba(11, 31, 58, 0.1);
}

.portal-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px;
  overflow-x: auto;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.portal-tabs button {
  flex: 0 0 auto;
  color: var(--slate);
  background: transparent;
  box-shadow: none;
}

.portal-tabs button.is-active {
  color: var(--white);
  background: var(--blue);
}

.portal-tab-panel {
  display: none;
}

.portal-tab-panel.is-active {
  display: block;
}

.account-security-grid,
.portal-auth {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.portal-auth {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.account-security-grid div,
.portal-auth__card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(11, 31, 58, 0.06);
}

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

.account-security-grid span,
.portal-auth__message {
  color: var(--muted);
  font-size: 14px;
}

.portal-auth__steps {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.portal-auth__steps span {
  padding: 8px 10px;
  color: var(--muted);
  background: var(--mist);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.portal-auth__steps .is-active {
  color: var(--white);
  background: var(--green);
}

.ams-otp-form {
  display: grid;
  gap: 14px;
}

.password-meter {
  height: 10px;
  overflow: hidden;
  background: var(--mist);
  border-radius: 999px;
}

.password-meter i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--warm), var(--green));
}

.password-meter span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bot-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bot-check input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
}

.ams-assistant {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
}

.ams-assistant__launcher {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 18px 48px rgba(29, 78, 216, 0.34);
}

.ams-assistant__launcher span {
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
}

.ams-assistant__launcher i {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--warm);
  border: 2px solid var(--white);
  border-radius: 50%;
}

.ams-assistant__panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  display: none;
  width: min(420px, calc(100vw - 28px));
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(11, 31, 58, 0.24);
}

.ams-assistant__panel.is-open {
  display: block;
  animation: assistantIn 220ms ease both;
}

.ams-assistant__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  color: var(--white);
  background: var(--navy);
}

.ams-assistant__header strong,
.ams-assistant__header span {
  display: block;
}

.ams-assistant__header span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.ams-assistant__close {
  min-height: 34px;
  width: 34px;
  padding: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.ams-assistant__progress {
  height: 4px;
  background: var(--mist);
}

.ams-assistant__progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 220ms ease;
}

.ams-assistant__messages {
  display: grid;
  gap: 10px;
  max-height: 360px;
  min-height: 220px;
  padding: 16px;
  overflow-y: auto;
  background: var(--mist);
}

.ams-assistant__messages p,
.summary-card {
  margin: 0;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ams-assistant__messages .user {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.summary-card dl {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 6px 10px;
  margin: 10px 0 0;
}

.summary-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-card dd {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
}

.ams-assistant__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
}

.ams-assistant__note {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  animation: revealUp 520ms ease forwards;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes assistantIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@media (max-width: 920px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    min-height: auto;
  }

  .site-header nav {
    order: 3;
  }

  .site-header .header-cta {
    width: auto;
    margin-left: auto;
  }

  .portal-auth,
  .account-security-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-lead,
  .section-heading p,
  .split p,
  .quote-copy p,
  .landing-hero p,
  .final-cta p {
    font-size: 16px;
  }

  .portal-auth,
  .account-security-grid {
    grid-template-columns: 1fr;
  }

  .portal-tabs {
    margin-inline: -4px;
  }

  .ams-assistant {
    right: 14px;
    bottom: 14px;
  }

  .ams-assistant__panel {
    right: -2px;
    bottom: 74px;
  }

  .ams-assistant__form {
    grid-template-columns: 1fr;
  }

  .summary-card dl {
    grid-template-columns: 1fr;
  }
}

/* AMS Portal 1.0.3: application-grade dashboard */
.content-page:has(.portal-dashboard),
.content-page:has(.portal-auth) {
  width: min(1320px, calc(100% - 32px));
}

.portal-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 16px;
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.portal-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  min-height: 640px;
  padding: 18px;
  color: var(--white);
  background: linear-gradient(180deg, var(--navy), #123a63);
  border-radius: 12px;
}

.portal-brandmark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 12px;
  font-weight: 900;
}

.portal-sidebar .portal-tabs {
  display: grid;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
}

.portal-sidebar .portal-tabs button {
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
}

.portal-sidebar .portal-tabs button.is-active {
  color: var(--navy);
  background: var(--white);
}

.portal-main {
  min-width: 0;
}

.portal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  max-width: none;
  margin: 0 0 18px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.portal-head h1 {
  max-width: 760px;
  font-size: clamp(32px, 4vw, 48px);
}

.portal-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.portal-metrics div,
.portal-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(11, 31, 58, 0.07);
}

.portal-metrics div {
  padding: 18px;
}

.portal-metrics span,
.portal-panel__head span,
.invoice-cards span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 28px;
}

.portal-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.portal-panel {
  padding: 22px;
}

.portal-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.portal-case {
  border-radius: 12px;
}

.portal-actions ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.document-table {
  display: grid;
  gap: 8px;
}

.document-table > div {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1.2fr;
  gap: 12px;
  padding: 14px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.message-thread {
  display: grid;
  gap: 12px;
}

.message-thread p,
.invoice-cards div {
  padding: 16px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.google-oauth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  margin-bottom: 18px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(11, 31, 58, 0.08);
  font-weight: 900;
}

.google-oauth-button strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--white);
  background: #4285f4;
  border-radius: 50%;
}

.portal-auth__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.portal-auth__trust span {
  padding: 8px 10px;
  color: var(--navy);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.ams-assistant__panel {
  border-radius: 14px;
}

.ams-assistant__header {
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.22), transparent),
    var(--navy);
}

.ams-assistant__messages {
  background:
    linear-gradient(180deg, #f8fbff, #eef4fb);
}

.ams-assistant__messages p.bot::before {
  content: "AMS";
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 1020px) {
  .portal-shell,
  .portal-workspace {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
    min-height: auto;
  }

  .portal-sidebar .portal-tabs {
    display: flex;
    overflow-x: auto;
  }

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

@media (max-width: 620px) {
  .portal-shell {
    padding: 10px;
    border-radius: 10px;
  }

  .portal-head {
    display: grid;
    padding: 20px;
  }

  .portal-metrics,
  .document-table > div,
  .invoice-cards {
    grid-template-columns: 1fr;
  }
}

/* Portal polish v1.0.6 */
.content-page:has(.portal-dashboard) {
  width: min(1360px, calc(100% - 24px));
  padding-top: 36px;
}

.portal-shell {
  gap: 18px;
  padding: 14px;
  background: #eef3f9;
  border-radius: 12px;
}

.portal-sidebar {
  min-height: 520px;
  padding: 14px;
  background: linear-gradient(180deg, #0a2242, #123f6b);
}

.portal-brandmark {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 10px;
  font-size: 18px;
}

.portal-sidebar .portal-tabs button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
}

.portal-head {
  padding: 20px 22px;
  border-radius: 10px;
}

.portal-head h1 {
  max-width: 680px;
  margin: 8px 0 10px;
  font-size: clamp(30px, 3.2vw, 56px);
  line-height: 1.06;
}

.portal-head p {
  max-width: 720px;
  margin: 0;
  color: #3e526e;
  font-size: 16px;
}

.portal-head .button.secondary {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 15px;
}

.portal-metrics {
  gap: 10px;
}

.portal-metrics div {
  padding: 14px 16px;
  border-radius: 10px;
}

.portal-metrics strong {
  margin-top: 4px;
  font-size: 34px;
  line-height: 1.1;
}

.portal-panel {
  padding: 16px;
  border-radius: 10px;
}

.portal-panel h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.portal-panel__head h2 {
  margin-bottom: 0;
}

.portal-panel__head span {
  letter-spacing: 0;
}

.portal-grid {
  gap: 12px;
}

.portal-case {
  padding: 16px;
}

.portal-case h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.portal-case p,
.portal-case li {
  font-size: 15px;
}

.portal-case ol {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 20px;
}

.portal-upload {
  margin-top: 12px;
}

.portal-upload button {
  min-height: 38px;
  font-size: 14px;
}

.portal-actions li {
  margin-bottom: 8px;
  font-size: 15px;
}

.document-table > div {
  grid-template-columns: 1fr 0.8fr 1.2fr;
  padding: 12px;
}

.invoice-cards strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.message-thread p {
  margin: 0;
  font-size: 15px;
}

.google-oauth-button {
  min-height: 48px;
  border-radius: 10px;
}

.portal-auth__card {
  border-radius: 10px;
}

.ams-assistant__messages .bot,
.ams-assistant__messages .user {
  font-size: 17px;
}

@media (max-width: 980px) {
  .portal-head h1 {
    font-size: clamp(26px, 8vw, 42px);
  }

  .portal-metrics strong {
    font-size: 28px;
  }
}

@media (max-width: 620px) {
  .content-page:has(.portal-dashboard) {
    width: min(100% - 14px, 1360px);
    padding-top: 18px;
  }

  .portal-shell {
    padding: 8px;
  }

  .portal-sidebar {
    padding: 10px;
  }

  .portal-head {
    padding: 14px;
  }

  .portal-head h1 {
    font-size: 34px;
  }

  .portal-head p {
    font-size: 15px;
  }

  .portal-panel h2,
  .portal-case h2 {
    font-size: 24px;
  }

  .portal-metrics strong {
    font-size: 32px;
  }
}

/* Typography + Professional Homepage v2 */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, .h1 {
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2, .h2 {
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1.14;
  letter-spacing: 0;
}

h3, .h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: 0;
}

h4, .h4 {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: 0;
}

h5, .h5 {
  font-size: 1rem;
  line-height: 1.4;
}

h6, .h6 {
  font-size: 0.92rem;
  line-height: 1.5;
}

.home-pro {
  background:
    radial-gradient(1200px 460px at 8% -8%, rgba(29, 78, 216, 0.09), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(22, 163, 74, 0.08), transparent 52%),
    #f9fbff;
}

.home-pro > section {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.hp-kicker {
  margin: 0 0 14px;
  color: #0f9a4f;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hp-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  padding: 42px 0 22px;
}

.hp-hero__content,
.hp-hero__panel {
  padding: 30px;
  background: #fff;
  border: 1px solid #dfe8f2;
  border-radius: 14px;
  box-shadow: 0 16px 46px rgba(9, 31, 58, 0.07);
}

.hp-hero__content p {
  color: #4a5f7d;
  font-size: 1.08rem;
}

.hp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.hp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hp-badges span {
  padding: 8px 12px;
  color: #203a5d;
  background: #f2f7fd;
  border: 1px solid #dbe7f5;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hp-hero__panel h2 {
  margin-bottom: 14px;
}

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

.hp-metrics article {
  padding: 12px;
  background: #f5f9ff;
  border: 1px solid #dbe6f4;
  border-radius: 10px;
}

.hp-metrics span {
  display: block;
  color: #5c6f8a;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hp-metrics strong {
  color: #0f2b4d;
  font-size: 1.65rem;
}

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

.hp-timeline-mini li {
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #dce7f4;
  border-radius: 10px;
}

.hp-timeline-mini strong,
.hp-timeline-mini span {
  display: block;
}

.hp-timeline-mini span {
  color: #4a607e;
  font-size: 0.94rem;
}

.hp-services,
.hp-insights {
  padding: 28px 0;
}

.hp-section-head {
  max-width: 820px;
}

.hp-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.hp-services__grid article {
  padding: 20px;
  background: #fff;
  border: 1px solid #dee8f4;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(11, 31, 58, 0.06);
}

.hp-services__grid p {
  color: #4d6180;
}

.hp-services__grid a {
  color: #1d4ed8;
  font-weight: 700;
}

.hp-compliance {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 14px;
  padding: 18px 0 30px;
}

.hp-compliance > div:first-child,
.hp-compliance__cards {
  padding: 22px;
  background: #fff;
  border: 1px solid #dfe8f2;
  border-radius: 12px;
}

.hp-compliance__cards {
  display: grid;
  gap: 10px;
}

.hp-compliance__cards article {
  padding: 12px;
  background: #f5f9ff;
  border: 1px solid #dce7f4;
  border-radius: 10px;
}

.hp-compliance__cards p {
  margin: 0;
  color: #4b607d;
}

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

.hp-insights__list a {
  min-height: 110px;
  padding: 16px;
  color: #122a4a;
  background: #fff;
  border: 1px solid #dfe8f2;
  border-radius: 10px;
  font-weight: 700;
}

.hp-cta {
  margin: 24px auto 58px;
  padding: 30px;
  color: #fff;
  background: linear-gradient(130deg, #0b1f3a, #15497a);
  border-radius: 14px;
}

.hp-cta h2,
.hp-cta p {
  color: #fff;
}

.hp-cta p {
  max-width: 760px;
  opacity: 0.84;
}

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

  .hp-services__grid,
  .hp-insights__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .home-pro > section {
    width: min(100% - 22px, 1200px);
  }

  .hp-hero__content,
  .hp-hero__panel,
  .hp-compliance > div:first-child,
  .hp-compliance__cards {
    padding: 18px;
  }

  .hp-services__grid,
  .hp-insights__list,
  .hp-metrics {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  color: var(--slate);
  background: var(--white);
  font-family: Inter, "IBM Plex Sans", Arial, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  backdrop-filter: blur(18px);
}

.brand img {
  display: block;
  width: 150px;
  height: auto;
}

.custom-logo-link img {
  display: block;
  width: 150px;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 700;
}

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

.header-cta,
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.header-cta,
.button.primary,
button {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(29, 78, 216, 0.2);
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
}

.section-grid,
.section,
.final-cta {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  align-items: center;
  gap: clamp(38px, 7vw, 96px);
  min-height: calc(88vh - 76px);
  padding: 48px 0 52px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5.35vw, 58px);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.hero-lead,
.section-heading p,
.split p,
.quote-copy p,
.landing-hero p,
.final-cta p {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 26px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-strip span {
  padding: 8px 12px;
  color: var(--navy);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 468px;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(246,248,251,0.68)),
    radial-gradient(circle at 76% 16%, rgba(22, 163, 74, 0.16), transparent 32%),
    linear-gradient(155deg, #ffffff, #edf4ff);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 78px 30px auto auto;
  width: 190px;
  height: 190px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 32px;
  opacity: 0.13;
  transform: rotate(18deg);
}

.visual-top,
.status-card,
.mini-chart {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  backdrop-filter: blur(16px);
}

.visual-top {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  color: var(--navy);
}

.visual-top span,
.status-card span,
.quote-result span,
.timeline span,
.landing-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.visual-top strong {
  color: var(--green);
  font-size: 40px;
  line-height: 1;
}

.status-card {
  width: min(320px, 92%);
  margin-top: 18px;
  padding: 18px;
}

.status-card strong {
  display: block;
  color: var(--navy);
  font-size: 24px;
}

.status-card.complete {
  margin-left: auto;
}

.status-card.active {
  border-left: 4px solid var(--blue);
}

.status-card.warning {
  margin-left: 48px;
  border-left: 4px solid var(--warm);
}

.mini-chart {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 104px;
  margin-top: 22px;
  padding: 20px;
}

.mini-chart i {
  display: block;
  flex: 1;
  min-width: 26px;
  background: linear-gradient(180deg, var(--blue), var(--green));
  border-radius: 6px 6px 2px 2px;
}

.mini-chart i:nth-child(1) { height: 36%; }
.mini-chart i:nth-child(2) { height: 54%; }
.mini-chart i:nth-child(3) { height: 42%; }
.mini-chart i:nth-child(4) { height: 76%; }
.mini-chart i:nth-child(5) { height: 92%; }

.section {
  padding: 86px 0;
}

.service-band {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - 1160px) / 2));
  background: var(--mist);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.service-card,
.landing-grid article {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(11, 31, 58, 0.06);
}

.line-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 30px;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.service-card p,
.landing-grid p {
  color: var(--muted);
}

.service-card a {
  color: var(--blue);
  font-weight: 900;
}

.split,
.quote-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 48px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline div {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
}

.timeline strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
}

.quote-section {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - 1160px) / 2));
  background: linear-gradient(135deg, var(--navy), #12365f);
}

.quote-section h2,
.quote-section .eyebrow {
  color: var(--white);
}

.quote-section p {
  color: rgba(255, 255, 255, 0.76);
}

.quote-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

select,
input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.quote-result {
  padding: 18px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-result strong {
  display: block;
  margin-top: 3px;
  color: var(--navy);
  font-size: 22px;
}

.quote-result p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.landing-hero {
  max-width: 840px;
  margin-bottom: 32px;
}

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

.landing-grid span {
  display: block;
  margin-bottom: 22px;
  color: var(--green);
}

.resources {
  border-top: 1px solid var(--line);
}

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

.article-list a {
  min-height: 118px;
  padding: 18px;
  color: var(--navy);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.final-cta {
  margin-bottom: 64px;
  padding: 54px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #103c68);
  border-radius: 8px;
}

.final-cta h2 {
  color: var(--white);
}

.final-cta p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding: 42px clamp(20px, 4vw, 64px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy);
}

.site-footer a {
  display: block;
  color: var(--white);
  font-weight: 800;
}

.site-footer .brand,
.site-footer .custom-logo-link {
  display: inline-block;
  padding: 10px;
  background: var(--white);
  border-radius: 8px;
}

.content-page {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.content-article {
  color: var(--slate);
}

.content-article img {
  max-width: 100%;
  height: auto;
}

.portal-login,
.portal-empty {
  padding: 34px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.portal-head {
  max-width: 780px;
  margin-bottom: 32px;
}

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

.portal-case {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(11, 31, 58, 0.06);
}

.portal-case__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.portal-case__top span,
.portal-case__top strong {
  color: var(--green);
  font-weight: 900;
}

.portal-deadline {
  color: var(--warm);
  font-weight: 800;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  background: var(--mist);
  border-radius: 999px;
}

.progress-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.portal-upload {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.portal-upload__message {
  min-height: 22px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.ams-chatbot {
  display: grid;
  gap: 14px;
  max-width: 820px;
  padding: 22px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ams-chatbot__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--navy);
}

.ams-chatbot__header span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.ams-chatbot__messages {
  min-height: 100px;
  padding: 16px;
  white-space: pre-wrap;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ams-chatbot__messages .user {
  color: var(--navy);
  font-weight: 900;
}

.ams-chatbot__messages .bot {
  color: var(--slate);
}

.ams-chatbot__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-cta {
    width: 100%;
  }

  .hero,
  .split,
  .quote-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 440px;
  }

  .service-grid,
  .landing-grid,
  .article-list,
  .portal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .section-grid,
  .section,
  .final-cta {
    width: min(100% - 28px, 1160px);
  }

  .brand img {
    width: 128px;
  }

  nav {
    gap: 16px;
    font-size: 13px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 390px;
    padding: 14px;
  }

  .status-card.warning {
    margin-left: 0;
  }

  .service-grid,
  .landing-grid,
  .article-list,
  .portal-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .ams-chatbot__form {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .final-cta {
    padding: 30px 20px;
  }
}

/* Portal V2 professional redesign */
.portal-v2 {
  display: grid;
  gap: 20px;
}

.portal-v2__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 32px;
  color: #0f2544;
  background: linear-gradient(130deg, #ffffff, #f2f7ff);
  border: 1px solid #dbe6f5;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(10, 32, 66, 0.08);
}

.portal-v2__kicker {
  margin: 0 0 8px;
  color: #16a34a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-v2__top h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
}

.portal-v2__top p {
  margin: 0;
  max-width: 760px;
  color: #3b4d67;
}

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

.portal-v2__metrics article {
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #dbe6f5;
  border-radius: 10px;
}

.portal-v2__metrics span {
  display: block;
  margin-bottom: 6px;
  color: #60738f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portal-v2__metrics strong {
  color: #132a4a;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
}

.portal-v2__layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
}

.portal-v2__nav {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 16px;
  background: linear-gradient(180deg, #0f2d53, #163d70);
  border-radius: 10px;
}

.portal-v2__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  background: linear-gradient(145deg, #1ed760, #1d4ed8);
  border-radius: 12px;
}

.portal-v2 .portal-tabs {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.portal-v2 .portal-tabs button {
  width: 100%;
  padding: 12px 14px;
  color: #c7dbf8;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.portal-v2 .portal-tabs button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.portal-v2 .portal-tabs button.is-active {
  color: #ffffff;
  background: linear-gradient(140deg, #1d4ed8, #1e40af);
  border-color: rgba(255, 255, 255, 0.2);
}

.portal-v2__content {
  min-width: 0;
}

.portal-v2__card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #dbe6f5;
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(15, 38, 68, 0.08);
}

.portal-v2__card h2 {
  margin-top: 0;
}

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

.portal-v2__card-head span {
  padding: 6px 10px;
  color: #0f2d53;
  font-size: 12px;
  font-weight: 700;
  background: #e9f1ff;
  border-radius: 999px;
}

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

.portal-v2 .portal-case {
  height: 100%;
  padding: 20px;
  border: 1px solid #d6e3f8;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.06);
}

.portal-v2 .portal-case h2 {
  margin: 8px 0 10px;
  font-size: clamp(20px, 2.1vw, 26px);
}

.portal-v2 .portal-upload input[type="file"] {
  padding: 10px;
  border: 1px dashed #bfd1ec;
  border-radius: 8px;
}

.portal-v2 .portal-upload button {
  justify-self: start;
}

.portal-v2__table,
.portal-v2__thread,
.portal-v2__invoice,
.portal-v2__security {
  display: grid;
  gap: 10px;
}

.portal-v2__table > div,
.portal-v2__invoice > div,
.portal-v2__security > div,
.portal-v2__thread p {
  margin: 0;
  padding: 14px;
  color: #2c3f5b;
  background: #f7faff;
  border: 1px solid #dce8f9;
  border-radius: 8px;
}

.portal-v2__table > div {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.1fr;
  gap: 12px;
}

.portal-v2__security strong,
.portal-v2__security span {
  display: block;
}

.portal-v2__security span {
  margin-top: 6px;
  color: #60738f;
}

@media (max-width: 1080px) {
  .portal-v2__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-v2__layout {
    grid-template-columns: 1fr;
  }

  .portal-v2__nav {
    position: static;
  }

  .portal-v2 .portal-tabs {
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  .portal-v2__top {
    padding: 22px;
    flex-direction: column;
  }

  .portal-v2__top .button {
    width: 100%;
    justify-content: center;
  }

  .portal-v2__metrics {
    grid-template-columns: 1fr;
  }

  .portal-v2__card {
    padding: 18px;
  }

  .portal-v2__cases {
    grid-template-columns: 1fr;
  }

  .portal-v2__table > div {
    grid-template-columns: 1fr;
  }
}

/* Portal auth redesign for non-registered users */
.portal-auth--pro {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: stretch;
}

.portal-auth--pro .portal-auth__intro {
  padding: 30px;
  background: linear-gradient(135deg, #ffffff, #f3f8ff);
  border: 1px solid #d9e4f2;
  border-radius: 10px;
}

.portal-auth--pro .portal-auth__intro h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.12;
}

.portal-auth--pro .portal-auth__intro p {
  color: #435874;
}

.portal-auth__list {
  margin: 20px 0;
  padding-left: 18px;
  color: #2f425f;
}

.portal-auth__list li {
  margin-bottom: 8px;
}

.portal-auth--pro .portal-auth__card {
  padding: 30px;
  background: #ffffff;
  border: 1px solid #d9e4f2;
  border-radius: 10px;
}

.portal-auth--pro .portal-auth__card h3 {
  margin: 0 0 8px;
  color: #122949;
  font-size: 28px;
}

.portal-auth--pro .portal-auth__card > p {
  margin: 0 0 16px;
  color: #4c617f;
}

.portal-auth--pro .google-oauth-button {
  margin-bottom: 14px;
}

.portal-auth--pro .portal-auth__message {
  margin-top: 12px;
  padding: 12px;
  background: #f3f8ff;
  border: 1px solid #dce7f7;
  border-radius: 8px;
}

@media (max-width: 940px) {
  .portal-auth--pro {
    grid-template-columns: 1fr;
  }

  .portal-auth--pro .portal-auth__intro,
  .portal-auth--pro .portal-auth__card {
    padding: 22px;
  }
}

/* Agency-grade visual refinement */
.site-header {
  min-height: 82px;
  padding-top: 16px;
  padding-bottom: 16px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(220, 229, 242, 0.9);
  backdrop-filter: blur(16px) saturate(140%);
}

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

.header-hotline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #c8daf6;
  border-radius: 999px;
  background: #f5f9ff;
}

.header-hotline span {
  color: #4b607d;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.header-hotline strong {
  color: #0d2a4c;
  font-size: 16px;
  line-height: 1;
}

.header-hotline:hover {
  border-color: #9ebcf0;
  background: #edf4ff;
}

.home-pro {
  background:
    radial-gradient(780px 340px at 50% -2%, rgba(29, 78, 216, 0.09), transparent 58%),
    #f8fbff;
}

.home-pro > section {
  width: min(1160px, calc(100% - 48px));
}

.hp-hero {
  gap: 18px;
  padding: 48px 0 18px;
}

.hp-hero__content,
.hp-hero__panel,
.hp-services__grid article,
.hp-compliance > div:first-child,
.hp-compliance__cards,
.hp-insights__list a,
.portal-auth--pro .portal-auth__intro,
.portal-auth--pro .portal-auth__card {
  border-radius: 18px;
  border-color: #d9e5f3;
  box-shadow: 0 14px 34px rgba(11, 31, 58, 0.05);
}

.hp-hero__content {
  padding: 42px;
}

.hp-hero__panel {
  padding: 34px;
}

.hp-kicker {
  margin-bottom: 16px;
  color: #0e8e4a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hp-hero__content h1 {
  margin: 0 0 16px;
  max-width: 16ch;
  color: #102b4d;
  font-size: clamp(40px, 5.3vw, 66px);
  line-height: 1.04;
  font-weight: 700;
}

.hp-hero__content p {
  max-width: 62ch;
  color: #3c5472;
  font-size: 19px;
  line-height: 1.55;
}

.hp-hero__trustline {
  margin-top: 14px;
}

.hp-hero__trustline p {
  margin: 0;
  color: #4a607d;
  font-size: 15px;
}

.hp-hero__trustline a {
  color: #0f3f8f;
  font-weight: 700;
}

.hp-service-card {
  display: grid;
  gap: 8px;
}

.hp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #163e73;
  font-size: 16px;
  border: 1px solid #c8daf3;
  border-radius: 9px;
  background: #f4f8ff;
}

.hp-section-head h2,
.hp-compliance h2,
.hp-cta h2 {
  color: #0f2b4c;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.08;
}

.hp-section-head {
  max-width: 940px;
}

.hp-services {
  padding-top: 34px;
}

.hp-services__grid {
  gap: 16px;
  margin-top: 18px;
}

.hp-services__grid article {
  padding: 24px;
}

.hp-services__grid h3 {
  margin: 4px 0 6px;
  font-size: 29px;
  line-height: 1.15;
}

.hp-services__grid p,
.hp-compliance p,
.hp-insights__list a {
  color: #445c79;
}

.hp-insights__list a {
  padding: 18px;
  line-height: 1.4;
}

.hp-cta {
  border-radius: 20px;
  background: linear-gradient(135deg, #0b1f3a, #123865);
}

@media (max-width: 980px) {
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 680px) {
  .home-pro > section {
    width: min(100% - 24px, 1160px);
  }

  .header-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-hotline,
  .header-cta {
    width: 100%;
    justify-content: center;
  }

  .hp-hero__content,
  .hp-hero__panel {
    padding: 24px;
  }

  .hp-hero__content h1 {
    font-size: clamp(34px, 8vw, 48px);
  }

  .hp-services__grid h3 {
    font-size: 24px;
  }
}

/* Homepage fixes: CTA contrast, footer spacing, post cards, illustrations */
.hp-section-head h2,
.hp-compliance h2 {
  color: #0f2b4c;
}

.hp-cta {
  margin-bottom: 72px;
}

.hp-cta h2,
.hp-cta p {
  color: #ffffff;
}

.site-footer {
  margin-top: 18px;
}

.hp-illustration,
.quote-illustration {
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid #d8e4f2;
  border-radius: 12px;
}

.hp-illustration img,
.quote-illustration img {
  display: block;
  width: 100%;
  height: clamp(180px, 22vw, 230px);
  object-fit: cover;
}

.quote-illustration {
  margin-top: 16px;
}

.hp-insights__list {
  gap: 14px;
}

.hp-post {
  display: grid;
  gap: 10px;
}

.hp-post__thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

.hp-post__meta {
  color: #5f7390;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hp-post h3 {
  margin: 0;
  color: #102b4d;
  font-size: 20px;
  line-height: 1.3;
}

.hp-post p {
  margin: 0;
  color: #4a607d;
  font-size: 15px;
  line-height: 1.55;
}

/* Formation landing page */
.formation-pro {
  padding-bottom: 44px;
}

.formation-hero {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 20px;
  align-items: stretch;
  padding-top: 36px;
}

.formation-hero__copy,
.formation-hero__media {
  background: #ffffff;
  border: 1px solid #dce7f3;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(11, 31, 58, 0.06);
}

.formation-hero__copy {
  padding: 34px;
}

.formation-hero__copy h1 {
  margin: 0 0 14px;
  color: #102b4d;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.05;
}

.formation-hero__copy p {
  color: #445c79;
  font-size: 18px;
}

.formation-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.formation-hero__media {
  overflow: hidden;
}

.formation-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.formation-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.formation-proof article,
.formation-steps article {
  padding: 20px;
  background: #ffffff;
  border: 1px solid #dce7f3;
  border-radius: 14px;
}

.formation-proof strong {
  color: #0f2b4c;
  font-size: 16px;
}

.formation-proof p {
  margin: 8px 0 0;
  color: #4a607d;
}

.formation-process {
  padding-top: 30px;
}

.formation-section-head {
  max-width: 860px;
}

.formation-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.formation-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  color: #163e73;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #c9dbf4;
  border-radius: 999px;
  background: #f3f8ff;
}

.formation-steps h3 {
  margin: 0 0 8px;
  color: #102b4d;
  font-size: 27px;
}

.formation-steps p {
  margin: 0;
  color: #4a607d;
}

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

  .formation-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .formation-hero__copy {
    padding: 22px;
  }

  .formation-hero__copy h1 {
    font-size: clamp(32px, 8vw, 44px);
  }

  .formation-hero__copy p {
    font-size: 16px;
  }
}

/* Contact page */
.contact-pro {
  display: grid;
  gap: 16px;
  margin: 30px auto 42px;
}

.contact-pro__hero {
  padding: 30px;
  background: linear-gradient(140deg, #ffffff, #f3f8ff);
  border: 1px solid #d9e5f3;
  border-radius: 16px;
}

.contact-pro__hero h1 {
  margin: 0 0 10px;
  color: #102b4d;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.06;
}

.contact-pro__hero p {
  margin: 0;
  max-width: 760px;
  color: #465d7a;
}

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

.contact-pro__grid article {
  padding: 22px;
  background: #ffffff;
  border: 1px solid #d9e5f3;
  border-radius: 14px;
}

.contact-pro__grid span {
  display: block;
  margin-bottom: 8px;
  color: #5c7190;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-pro__grid h2,
.contact-pro__grid p {
  margin: 0;
  color: #102b4d;
}

.contact-pro__grid a {
  color: #1d4ed8;
  font-weight: 700;
}

.contact-pro__hotline {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
}

@media (max-width: 760px) {
  .contact-pro__hero,
  .contact-pro__grid article {
    padding: 18px;
  }

  .contact-pro__grid {
    grid-template-columns: 1fr;
  }
}
