/**
 * InvoiceMagic brand theme
 * Marketing site blue: #0274be
 */
:root {
  --im-brand: #0274be;
  --im-brand-dark: #015a94;
  --im-brand-darker: #014876;
  --im-brand-light: #e8f4fc;
  --im-brand-soft: #cfedfb;
  --blue: #0274be;
  --primary: #0274be;
  --success: #0274be;
}

/* Global links / headings (Argon was customized to green #009e74) */
a {
  color: var(--im-brand);
}
a:hover {
  color: var(--im-brand-dark);
}

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
  color: var(--im-brand);
}

.text-primary,
a.text-primary:hover,
a.text-primary:focus {
  color: var(--im-brand) !important;
}

/* Primary surfaces / buttons → brand blue */
.bg-primary {
  background-color: var(--im-brand) !important;
}
a.bg-primary:hover,
a.bg-primary:focus,
button.bg-primary:hover,
button.bg-primary:focus {
  background-color: var(--im-brand-dark) !important;
}

/* App chrome headers stay brand blue; marketing/auth heroes stay dark (bg-gradient-default). */
.header.bg-primary,
.navbar-vertical .bg-primary,
.bg-primary.pt-6,
.bg-primary.pt-7,
.bg-primary.pt-8 {
  background-color: var(--im-brand) !important;
}

/* Guest / marketing pages use a white canvas */
body.bg-white {
  background-color: #fff !important;
}
body.bg-white .header.bg-white h1,
body.bg-white .header.bg-white h2,
body.bg-white .header.bg-white h3 {
  color: var(--im-brand);
}
body.bg-white .header.bg-white p {
  color: #525f7f;
}

/* —— Register page —— */
body.register-page {
  background:
    radial-gradient(1200px 480px at 85% -10%, rgba(2, 116, 190, 0.12), transparent 55%),
    radial-gradient(900px 420px at -10% 30%, rgba(2, 116, 190, 0.06), transparent 50%),
    linear-gradient(180deg, #f5f9fc 0%, #ffffff 42%, #ffffff 100%) !important;
}
.register-shell {
  /* Clear the guest top navbar so the form title never sits under it */
  padding: 5.5rem 0 4rem;
}
.register-layout {
  min-height: 0;
}
.register-card {
  background: #fff;
  border: 1px solid #e4ebf2;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(15, 35, 52, 0.07);
  padding: 2rem 1.85rem 1.75rem;
}
.register-card-header {
  margin-bottom: 1.35rem;
}
.register-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--im-brand);
}
.register-title {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a2b3c !important;
}
.register-subtitle {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #66788a;
}
.register-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #d7e0e8;
  border-radius: 0.55rem;
  background: #fff;
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.register-google-btn:hover {
  border-color: #b8c9d8;
  background: #f8fafc;
  color: #1a2b3c;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 35, 52, 0.06);
}
.register-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.25rem 0 1.15rem;
  color: #8a9aab;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.register-divider::before,
.register-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5edf3;
}
.register-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #3d4f63;
}
.register-form .form-group {
  margin-bottom: 0.95rem;
}
.register-input {
  height: calc(2.55rem + 2px);
  border: 1px solid #d5e0ea;
  border-radius: 0.5rem;
  box-shadow: none;
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
  color: #1f2d3d;
}
.register-input:focus {
  border-color: var(--im-brand);
  box-shadow: 0 0 0 3px rgba(2, 116, 190, 0.15);
}
.register-terms {
  margin-top: 0.35rem;
  margin-bottom: 1.15rem !important;
}
.register-terms .custom-control-label {
  font-size: 0.85rem;
  color: #66788a;
  padding-top: 0.1rem;
}
.register-terms .custom-control-label a {
  font-weight: 600;
}
.register-submit {
  height: 2.85rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 0.55rem;
  box-shadow: 0 8px 18px rgba(2, 116, 190, 0.22);
}
.register-login-link {
  margin: 1.15rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: #66788a;
}
.register-login-link a {
  font-weight: 700;
}
.register-forgot-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--im-brand);
  text-decoration: none;
}
.register-forgot-link:hover {
  color: var(--im-brand-dark);
  text-decoration: underline;
}

.register-features {
  height: 100%;
  padding: 1.5rem 0.25rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.register-features-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--im-brand);
}
.register-features-title {
  margin: 0 0 0.75rem;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1a2b3c !important;
  letter-spacing: -0.02em;
}
.register-features-lead {
  margin: 0 0 2rem;
  max-width: 30rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #5a6d80;
}
.register-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
}
.register-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}
.register-check {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-top: 0.1rem;
  color: var(--im-brand);
}
.register-check svg {
  display: block;
  width: 28px;
  height: 28px;
}
.register-feature-item h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2d3d !important;
  line-height: 1.3;
}
.register-feature-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #66788a;
  max-width: 28rem;
}

@media (max-width: 991.98px) {
  .register-shell {
    padding-top: 5rem;
  }
  .register-features {
    padding: 1.75rem 0 0;
  }
  .register-features-title {
    font-size: 1.4rem;
  }
}
@media (max-width: 767.98px) {
  .register-shell {
    padding-top: 4.5rem;
  }
  .register-card {
    padding: 1.5rem 1.25rem 1.35rem;
  }
  .register-title {
    font-size: 1.15rem;
  }
  .register-features-lead {
    margin-bottom: 1.5rem;
  }
  .register-feature-list {
    gap: 1.2rem;
  }
}

/* Guest top bar: brand blue so the white logo reads clearly */
.navbar-horizontal.navbar-dark.bg-primary {
  background-color: var(--im-brand) !important;
}
.navbar-horizontal.navbar-dark.bg-primary .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
}
.navbar-horizontal.navbar-dark.bg-primary .navbar-nav .nav-link:hover {
  color: #fff;
}

.btn-primary {
  color: #fff;
  border-color: var(--im-brand);
  background-color: var(--im-brand);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  color: #fff;
  border-color: var(--im-brand-dark);
  background-color: var(--im-brand-dark);
}

.btn-outline-primary {
  color: var(--im-brand);
  border-color: var(--im-brand);
}
.btn-outline-primary:hover {
  color: #fff;
  border-color: var(--im-brand);
  background-color: var(--im-brand);
}

/* Tabs / nav accents */
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: var(--im-brand);
  border-bottom: 4px solid var(--im-brand);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--im-brand);
}

/* Keep "success" UI on-brand (was Argon green) when used as theme chrome */
.bg-success {
  background-color: var(--im-brand) !important;
}
.btn-success {
  color: #fff;
  border-color: var(--im-brand);
  background-color: var(--im-brand);
}
.btn-success:hover,
.btn-success:focus,
.btn-success.focus,
.btn-success:not(:disabled):not(.disabled):active,
.btn-success:not(:disabled):not(.disabled).active {
  color: #fff;
  border-color: var(--im-brand-dark);
  background-color: var(--im-brand-dark);
}
.text-success {
  color: var(--im-brand) !important;
}
.bg-gradient-success {
  background: linear-gradient(87deg, #0274be 0, #0a8ad9 100%) !important;
}

.badge-primary,
.badge-success {
  background-color: var(--im-brand);
}

.custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--im-brand);
  background-color: var(--im-brand);
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before,
.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
  border-color: var(--im-brand);
  background-color: var(--im-brand);
}

.page-item.active .page-link {
  border-color: var(--im-brand);
  background-color: var(--im-brand);
}
.page-link {
  color: var(--im-brand);
}
.page-link:hover {
  color: var(--im-brand-dark);
}

/* Auth / guest navbar logo */
.navbar-horizontal .navbar-brand {
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.navbar-horizontal .navbar-brand img,
.navbar-horizontal.navbar-dark .navbar-brand img,
.navbar-horizontal .navbar-brand .navbar-brand-img {
  height: 56px;
  width: auto;
  max-height: none;
}

/* Logged-in sidebar logo */
.navbar-vertical .navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.navbar-vertical .navbar-brand-img,
.navbar-vertical .navbar-brand > img {
  max-height: 3rem;
  width: auto;
}

/* Soft brand surfaces used in the app */
.payment-method-card.bg-active {
  background-color: var(--im-brand-light) !important;
}

.alert-success {
  background: #e8f4fc !important;
  border: 1px solid #9fd0ef !important;
  color: #212b36 !important;
}

/* ---- App shell polish ---- */
#navbar-main .page-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.2;
}

/* Circular “New” (+) action on list pages */
.btn-add-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #fff;
  color: var(--im-brand);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  border: none;
  box-shadow: 0 4px 14px rgba(15, 35, 52, 0.18);
  cursor: pointer;
  text-decoration: none !important;
  padding: 0;
  margin: 0.5rem 0.75rem 0.5rem 0.5rem;
  vertical-align: middle;
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.header .btn-add-circle {
  margin: 0.65rem 1rem 0.65rem 0.75rem;
}
.btn-add-circle span {
  display: block;
  margin-top: -0.1rem;
}
.btn-add-circle:hover,
.btn-add-circle:focus {
  background: #fff;
  color: var(--im-brand-dark);
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 35, 52, 0.22);
  outline: none;
}

.settings-page .card {
  border: 0;
}
.settings-tabs .nav-link {
  color: #525f7f;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
  padding: 0.5rem 0.9rem;
}
.settings-tabs .nav-link.active {
  background-color: var(--im-brand) !important;
  color: #fff !important;
}
.settings-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #32325d;
  margin-bottom: 0.35rem;
}
.settings-panel {
  background: #f7fafc;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
  height: 100%;
}
.settings-page .form-control-label {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.settings-page .form-group {
  margin-bottom: 0.85rem;
}
.settings-invoice-type img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e9ecef;
  border-radius: 0.35rem;
}
.settings-invoice-type input[type="radio"]:checked + label img {
  border-color: var(--im-brand);
  box-shadow: 0 0 0 2px rgba(2, 116, 190, 0.25);
}

/* Business settings: contact left / brand right */
.settings-business-layout {
  align-items: flex-start;
}
.settings-brand-panel {
  padding: 1.35rem 1.4rem;
  background:
    linear-gradient(160deg, rgba(2, 116, 190, 0.09) 0%, rgba(2, 116, 190, 0.02) 42%, #fff 100%),
    #f8fafc;
  border: 1px solid #e6eef5;
  border-radius: 0.75rem;
  position: sticky;
  top: 1rem;
}
.settings-brand-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--im-brand);
  margin: 0;
}
.settings-brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2d3d;
  margin: 0;
  line-height: 1.25;
  word-break: break-word;
}
.settings-brand-logo-form {
  width: 100%;
}
.settings-sample-invoice-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--im-brand);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.settings-sample-invoice-link:hover {
  color: #025a94;
  text-decoration: underline;
}
.settings-brand-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.settings-brand-logo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 160px;
  margin: 0;
  padding: 0.75rem;
  border-radius: 0.75rem;
  cursor: pointer;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.settings-brand-logo-card.is-placeholder {
  border: 2px dashed #9eb8cc;
  color: #5a7a94;
  background:
    repeating-linear-gradient(
      -45deg,
      #fff,
      #fff 8px,
      #f3f8fc 8px,
      #f3f8fc 16px
    );
}
.settings-brand-logo-card.has-logo {
  border: 1px solid #d7e3ee;
  box-shadow: 0 8px 22px rgba(15, 35, 52, 0.08);
}
.settings-brand-logo-card:hover {
  border-color: var(--im-brand);
  box-shadow: 0 10px 24px rgba(2, 116, 190, 0.16);
  transform: translateY(-1px);
}
.settings-brand-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.settings-brand-logo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 35, 52, 0.45);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.settings-brand-logo-card.has-logo:hover .settings-brand-logo-overlay,
.settings-brand-logo-card.has-logo:focus-within .settings-brand-logo-overlay {
  opacity: 1;
}
.settings-brand-logo-cta {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--im-brand);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}
.settings-brand-placeholder {
  display: block;
  margin-bottom: 0.35rem;
  color: #7a97b0;
}
.settings-brand-placeholder-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.3;
  gap: 0.15rem;
}
.settings-brand-placeholder-text strong {
  font-size: 0.9rem;
  color: #2f4660;
}
.settings-brand-placeholder-text span {
  font-size: 0.72rem;
  color: #6b8499;
}
.settings-brand-hint {
  max-width: none;
}
@media (max-width: 991.98px) {
  .settings-brand-panel {
    position: static;
  }
}

/* Dashboard setup checklist */
.welcome-init {
  min-height: 0 !important;
}
.welcome-init .card,
.welcome-init.setup-card,
.setup-card {
  min-height: 0 !important;
}
.setup-steps {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1rem;
}
.setup-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.setup-step {
  display: flex;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  border: 1px solid #e3e8ef;
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.setup-step:hover {
  border-color: #b6d7ec;
}
.setup-step.is-active {
  border-color: var(--im-brand);
  box-shadow: 0 0 0 2px rgba(2, 116, 190, 0.15);
  background: var(--im-brand-light);
}
.setup-step-num {
  flex: 0 0 1.6rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--im-brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.65rem;
  margin-top: 0.1rem;
}
.setup-step-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.setup-step-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #32325d;
  line-height: 1.25;
}
.setup-step-summary {
  font-size: 0.75rem;
  color: #8898aa;
  line-height: 1.3;
  margin-top: 0.15rem;
}
.setup-step-detail {
  border: 1px solid #e3e8ef;
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  background: #fff;
  min-height: 0;
}
.setup-step-detail .brand-img {
  max-width: 220px;
}
@media (max-width: 767.98px) {
  .setup-steps {
    grid-template-columns: 1fr;
  }
}

/* Reduce tall empty hero space on app pages */
.main-content .header.bg-primary.pt-7 {
  padding-top: 4.5rem !important;
}
.main-content .header.bg-primary.pb-6 {
  padding-bottom: 3rem !important;
}
.dashboard .welcome-init .card {
  margin-bottom: 0;
}

/* Top nav already shows the page name on desktop — avoid duplicate titles */
@media (min-width: 992px) {
  .main-content .header.bg-primary .header-body h6.h2.text-white {
    display: none;
  }
  .main-content .header.bg-primary .header-body .row.align-items-center.py-4,
  .main-content .header.bg-primary .header-body .row.align-items-center.py-3 {
    min-height: 2.5rem;
  }
}

/* ==========================================================================
   Marketing site (homepage / privacy / terms)
   ========================================================================== */
.im-site {
  --im-ink: #12324a;
  --im-muted: #4d657a;
  --im-line: rgba(2, 116, 190, 0.16);
  --im-paper: #f3f8fc;
  --im-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --im-sans: Manrope, "Segoe UI", sans-serif;
  margin: 0;
  color: var(--im-ink);
  font-family: var(--im-sans);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(2, 116, 190, 0.14), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(1, 90, 148, 0.10), transparent 50%),
    linear-gradient(180deg, #f7fbfe 0%, #ffffff 38%, #ffffff 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.im-site *,
.im-site *::before,
.im-site *::after {
  box-sizing: border-box;
}

.im-site a {
  color: var(--im-brand);
  text-decoration: none;
}

.im-site a:hover {
  color: var(--im-brand-dark);
}

.im-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--im-ink);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.im-skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.im-container {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.im-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(247, 251, 254, 0.88);
  border-bottom: 1px solid rgba(18, 50, 74, 0.06);
}

.im-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.im-brand img {
  display: block;
  height: 36px;
  width: auto;
}

.im-nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.im-nav-links > a:not(.im-nav-btn) {
  color: var(--im-ink);
}

.im-nav-links > a:not(.im-nav-btn):hover {
  color: var(--im-brand);
}

.im-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.im-nav-btn:hover {
  transform: translateY(-1px);
}

.im-nav-btn-login {
  background: #fff;
  border-color: rgba(2, 116, 190, 0.28);
  color: var(--im-brand-dark) !important;
  box-shadow: 0 2px 8px rgba(18, 50, 74, 0.06);
}

.im-nav-btn-login:hover {
  background: var(--im-brand-light);
  border-color: var(--im-brand);
  color: var(--im-brand-darker) !important;
}

.im-nav-btn-cta {
  background: var(--im-brand) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(2, 116, 190, 0.22);
}

.im-nav-btn-cta:hover {
  background: var(--im-brand-dark) !important;
  color: #fff !important;
}

/* Guest auth navbar (login / register pages) */
.guest-top-nav .guest-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.guest-top-nav .guest-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.guest-top-nav .guest-nav-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.guest-top-nav .guest-nav-btn-login {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
}

.guest-top-nav .guest-nav-btn-login:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff !important;
}

.guest-top-nav .guest-nav-btn-cta {
  background: #fff !important;
  color: var(--im-brand-dark) !important;
  box-shadow: 0 6px 16px rgba(0, 30, 55, 0.18);
}

.guest-top-nav .guest-nav-btn-cta:hover {
  background: var(--im-brand-soft) !important;
  color: var(--im-brand-darker) !important;
}

@media (max-width: 767.98px) {
  .guest-top-nav .guest-nav-actions {
    padding: 0.75rem 0 1rem;
    flex-direction: row;
    justify-content: flex-start;
  }
}

.im-hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4rem;
}

.im-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(1, 72, 118, 0.96) 0%, rgba(2, 116, 190, 0.92) 48%, rgba(15, 84, 130, 0.9) 100%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(207, 237, 251, 0.25), transparent 45%);
  z-index: 0;
}

.im-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
}

.im-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.im-hero-brand {
  margin: 0 0 0.65rem;
  font-family: var(--im-serif);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.02em;
}

.im-hero-copy h1 {
  margin: 0 0 1rem;
  color: #e8f4fc;
  font-family: var(--im-sans);
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
}

.im-hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.im-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.im-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.im-btn:hover {
  transform: translateY(-1px);
}

.im-btn-primary {
  background: #fff;
  color: var(--im-brand-dark) !important;
}

.im-btn-primary:hover {
  background: var(--im-brand-soft);
  color: var(--im-brand-darker) !important;
}

.im-btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
}

.im-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
}

.im-btn-lg {
  min-height: 3.2rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.im-hero-media {
  margin: 0;
}

.im-hero-media img,
.im-split figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
}

.im-hero-media img {
  box-shadow: 0 28px 60px rgba(0, 30, 55, 0.35);
}

.im-section {
  padding: 4.5rem 0;
}

.im-section-head {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.im-section-head h2,
.im-split h2,
.im-secure-inner h2,
.im-cta-inner h2,
.im-legal-header h1 {
  margin: 0 0 0.75rem;
  font-family: var(--im-serif);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  color: var(--im-ink);
  font-weight: 400;
}

.im-section-head p,
.im-split p,
.im-secure-inner p,
.im-cta-inner p {
  margin: 0;
  color: var(--im-muted);
  font-size: 1.05rem;
}

.im-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.im-steps article {
  padding: 0.25rem 0.25rem 0;
}

.im-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--im-brand-light);
  color: var(--im-brand-dark);
  font-weight: 800;
  font-size: 0.9rem;
}

.im-steps h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  color: var(--im-ink);
}

.im-steps p {
  margin: 0;
  color: var(--im-muted);
}

.im-feature-band {
  background:
    linear-gradient(180deg, rgba(232, 244, 252, 0.85), rgba(255, 255, 255, 0.2));
  border-top: 1px solid var(--im-line);
  border-bottom: 1px solid var(--im-line);
}

.im-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.im-split-reverse figure {
  order: 2;
}

.im-checklist {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.im-checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0.55rem 0;
  color: var(--im-ink);
  font-weight: 500;
}

.im-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--im-brand);
  box-shadow: 0 0 0 4px var(--im-brand-light);
}

.im-text-link {
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.im-secure-inner,
.im-cta-inner,
.im-faq-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.im-secure {
  background:
    radial-gradient(700px 240px at 50% 0%, rgba(2, 116, 190, 0.12), transparent 70%),
    #fff;
}

.im-faq-list {
  text-align: left;
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.im-faq-list details {
  border-top: 1px solid var(--im-line);
  padding: 0.9rem 0;
}

.im-faq-list details:last-child {
  border-bottom: 1px solid var(--im-line);
}

.im-faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--im-ink);
  list-style: none;
}

.im-faq-list summary::-webkit-details-marker {
  display: none;
}

.im-faq-list summary::after {
  content: "+";
  float: right;
  color: var(--im-brand);
  font-weight: 800;
}

.im-faq-list details[open] summary::after {
  content: "–";
}

.im-faq-list p {
  margin: 0.7rem 0 0;
  color: var(--im-muted);
}

.im-cta-band {
  padding: 4.5rem 0 5rem;
  background:
    linear-gradient(125deg, var(--im-brand-darker), var(--im-brand) 55%, #1984c8);
  color: #fff;
}

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

.im-cta-band p {
  margin: 0 0 1.5rem !important;
  opacity: 0.92;
}

.im-cta-band .im-btn-primary {
  background: #fff;
  color: var(--im-brand-darker) !important;
}

.im-footer {
  background: #0f2435;
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 1.5rem;
}

.im-footer a {
  color: rgba(255, 255, 255, 0.86);
}

.im-footer a:hover {
  color: #fff;
}

.im-footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.im-footer-brand p {
  margin: 1rem 0 0;
  max-width: 28rem;
}

.im-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.im-footer h2 {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--im-sans);
  font-weight: 700;
}

.im-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.im-footer li + li {
  margin-top: 0.45rem;
}

.im-footer-bottom {
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.im-legal {
  padding: 3rem 0 4.5rem;
}

.im-legal-inner {
  max-width: 760px;
}

.im-eyebrow {
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.im-legal-updated {
  margin: 0 0 2rem;
  color: var(--im-muted);
}

.im-legal-body h2 {
  margin: 2rem 0 0.85rem;
  font-family: var(--im-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--im-ink);
  line-height: 1.35;
}

.im-legal-body p,
.im-legal-body li {
  color: var(--im-muted);
  font-size: 1rem;
}

.im-legal-body p {
  margin: 0 0 1rem;
}

.im-legal-body ul,
.im-legal-body ol {
  margin: 0 0 1rem 1.2rem;
}

@media (max-width: 900px) {
  .im-hero-grid,
  .im-split,
  .im-steps,
  .im-footer-inner {
    grid-template-columns: 1fr;
  }

  .im-split-reverse figure {
    order: 0;
  }

  .im-nav-links > a:not(.im-nav-btn) {
    display: none;
  }


  .im-hero {
    padding-top: 2.5rem;
  }

  .im-hero-brand {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .im-btn {
    transition: none;
  }
  .im-btn:hover {
    transform: none;
  }
}
