/*
 * transfercube.com
 *
 * One stylesheet for every page. Colours and type are the brand's: indigo
 * #200590, purple #401BDD, DM Sans.
 */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/fonts/dm-sans.woff2") format("woff2");
}

:root {
  --primary: #200590;
  --secondary: #401bdd;
  --heading: #110c29;
  --text: #585567;
  --tint: #f4f7fe;
  --line: #dad7e7;
  --error: #d63637;
}

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

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

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: var(--secondary);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: #fff;
  color: var(--primary);
}
.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 0;
  border-radius: 3px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover {
  background: var(--secondary);
  color: #fff;
}
.btn-bright {
  background: var(--secondary);
}
.btn-bright:hover {
  background: #fff;
  color: var(--primary);
}
.btn-white {
  padding: 15px 30px;
  background: #fff;
  color: var(--primary);
  text-transform: uppercase;
  word-spacing: 1px;
}
.btn-white:hover {
  background: var(--secondary);
  color: #fff;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.more::after {
  content: "";
  width: 14px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M1 6h11M7.5 1.5 12 6l-4.5 4.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M1 6h11M7.5 1.5 12 6l-4.5 4.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}
.more:hover::after {
  transform: translateX(3px);
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */

.site-header {
  position: relative;
  z-index: 50;
  background: var(--primary);
}
.site-header .container {
  display: flex;
  align-items: center;
  min-height: 108px;
}
.brand img {
  display: block;
  width: 171px;
}
.site-nav {
  margin-left: 30px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-menu > li {
  position: relative;
}
.nav-menu a,
.nav-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.nav-menu a:hover,
.nav-menu button:hover {
  color: #fff;
  opacity: 0.8;
}
.has-submenu > a::after {
  content: "";
  border: 4px solid transparent;
  border-top: 5px solid currentColor;
  border-bottom: 0;
  margin-top: 2px;
}
.submenu {
  position: absolute;
  top: 100%;
  left: -16px;
  display: none;
  min-width: 230px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(17, 12, 41, 0.15);
}
.submenu a {
  padding: 10px 16px;
  color: var(--heading);
}
.submenu a:hover {
  color: var(--secondary);
  opacity: 1;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.is-open .submenu {
  display: block;
}
.header-cta {
  margin-left: auto;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: relative;
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  transition: transform 0.25s ease, background 0.25s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .site-header .container {
    min-height: 76px;
  }
  .nav-toggle {
    display: block;
  }
  .header-cta {
    padding: 11px 16px;
    font-size: 13px;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    background: var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .nav-open .site-nav {
    display: block;
  }
  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 10px 16px;
  }
  .nav-menu a,
  .nav-menu button {
    width: 100%;
    padding: 12px 10px;
    font-size: 16px;
  }
  .submenu {
    position: static;
    display: block;
    padding: 0 0 0 16px;
    background: transparent;
    box-shadow: none;
  }
  .submenu a {
    color: rgba(255, 255, 255, 0.85);
  }
  .has-submenu > a::after {
    display: none;
  }
}
@media (max-width: 480px) {
  .brand img {
    width: 130px;
  }
  .header-cta {
    padding: 10px 12px;
    font-size: 12px;
  }
  .nav-toggle {
    margin-left: 4px;
  }
}

/* ------------------------------------------------------------------
   Home hero (the header sits on it)
   ------------------------------------------------------------------ */

.home .site-header {
  background: transparent;
}
.home-hero {
  position: relative;
  margin-top: -108px;
  padding: 170px 0 52px;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
}
.home-hero .container {
  position: relative;
  z-index: 1;
}
.home-hero .copy {
  max-width: 640px;
  padding-left: 10px;
}
.home-hero h1 {
  font-size: 53px;
  font-weight: 900;
  letter-spacing: 0.1px;
  color: #fff;
  line-height: 1.05;
}
.home-hero p {
  margin: 30px 0 76px;
  font-size: 20px;
  line-height: 1.5;
}
.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  width: 548px;
  height: 500px;
}
.hero-art img {
  position: absolute;
}
.hero-art .large { left: 144px; top: 0; width: 404px; }
.hero-art .small { left: 0; top: 226px; width: 296px; }
.hero-art .arrows { left: 99px; top: 357px; width: 90px; }

@media (max-width: 1024px) {
  .home-hero {
    margin-top: -76px;
    padding-top: 130px;
  }
  .hero-art {
    display: none;
  }
}
@media (max-width: 767px) {
  .home-hero h1 {
    font-size: 32px;
  }
  .home-hero p {
    margin-bottom: 40px;
  }
}

/* ------------------------------------------------------------------
   Inner page hero
   ------------------------------------------------------------------ */

.page-hero {
  padding: 80px 0 90px;
  background: var(--tint);
}
.page-hero .copy {
  max-width: 560px;
}
.eyebrow {
  margin: 0 0 30px;
  font-weight: 700;
  color: var(--primary);
}
.page-hero h1 {
  margin-bottom: 26px;
  font-size: 48px;
  font-weight: 700;
}
.page-hero.center {
  padding: 70px 0;
  text-align: center;
}
.page-hero.center h1 {
  margin: 0;
}
@media (max-width: 767px) {
  .page-hero {
    padding: 50px 0 60px;
  }
  .page-hero h1 {
    font-size: 36px;
  }
}

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */

.section {
  padding: 90px 0;
}
.section + .section {
  padding-top: 0;
}
.section-title {
  margin-bottom: 20px;
  font-size: 36px;
  font-weight: 700;
}
.section-title.center,
.center {
  text-align: center;
}
.intro {
  margin-bottom: 60px;
  text-align: center;
}
.intro h2 {
  margin-bottom: 26px;
  font-size: 48px;
  font-weight: 700;
  color: #000;
}
.intro p {
  font-size: 20px;
}

/* Text beside a picture, either way round */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split + .split {
  margin-top: 90px;
}
.split figure {
  margin: 0;
  text-align: center;
}
.split.flip figure {
  order: -1;
}
.split .globe {
  width: 330px;
}
/* Home: the picture takes less room than the four services beside it */
.split.wide-text {
  grid-template-columns: 41fr 59fr;
  gap: 50px;
}

/* A list with the purple tick */
.checks {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  margin-bottom: 26px;
  padding-left: 76px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 29px;
  height: 19px;
  margin-top: -9px;
  background: url("/img/check.svg") center / contain no-repeat;
}
.checks.small li {
  margin-bottom: 8px;
  padding-left: 26px;
  font-size: 16px;
  color: #656565;
}
.checks.small li::before {
  left: 0;
  width: 19px;
  height: 12px;
  margin-top: -6px;
}

/* Home: four services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 30px;
}
.service h3 {
  margin: 26px 0 20px;
  font-size: 24px;
  font-weight: 700;
  color: #000;
}
.service p {
  margin-bottom: 20px;
}

/* Icon features in a row */
.icon-row {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 30px;
  margin-top: 60px;
  text-align: center;
}
.icon-row img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.icon-row p {
  max-width: 280px;
  margin: 50px auto 0;
  font-size: 16px;
}

/* Payment methods: tabs */
.tabs [role="tablist"] {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.tabs [role="tab"] {
  padding: 14px 35px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.tabs [role="tab"][aria-selected="true"] {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}
.tabs [role="tabpanel"] {
  padding: 20px 0;
}

@media (max-width: 1024px) {
  .split,
  .services-grid {
    gap: 40px;
  }
}
@media (max-width: 767px) {
  .container {
    padding: 0 20px;
  }
  .section {
    padding: 60px 0;
  }
  .intro h2 {
    font-size: 28px;
  }
  .section-title {
    font-size: 30px;
  }
  .split,
  .split.wide-text,
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .split.flip figure {
    order: 0;
  }
  .split + .split {
    margin-top: 60px;
  }
  .services-grid {
    text-align: center;
  }
  .checks li {
    padding-left: 50px;
  }
  .checks li::before {
    left: 0;
  }
  .icon-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .icon-row p {
    margin-top: 20px;
  }
  .tabs [role="tab"] {
    padding: 12px 16px;
  }
}

/* ------------------------------------------------------------------
   Call to action band
   ------------------------------------------------------------------ */

.cta {
  padding: 0 0 70px;
}
.cta .band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1003px;
  margin: 0 auto;
  padding: 30px 68px;
  background: var(--primary);
}
.cta h2 {
  max-width: 420px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
@media (max-width: 767px) {
  /* Hidden on phones, as on the old site */
  .cta {
    display: none;
  }
}

/* ------------------------------------------------------------------
   Book a demo form
   ------------------------------------------------------------------ */

.demo-form {
  max-width: 780px;
  margin: 0 auto;
}
.demo-form .fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.demo-form .wide {
  grid-column: 1 / -1;
}
.demo-form .field > label,
.demo-form legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--heading);
}
.demo-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.req {
  color: var(--error);
}
.demo-form input[type="text"],
.demo-form input[type="email"],
.demo-form textarea {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 2px;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 16px;
}
.demo-form textarea {
  height: 120px;
  resize: vertical;
}
.demo-form input:focus,
.demo-form textarea:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 1px var(--secondary);
}
.demo-form [aria-invalid="true"] {
  border-color: var(--error);
}
.demo-form .name {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.demo-form .sublabel {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--heading);
}
.demo-form .consent label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--heading);
}
.demo-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.demo-form .submit {
  margin-top: 30px;
  text-align: center;
}
.demo-form button[type="submit"] {
  width: 217px;
  padding: 15px 20px;
}
.demo-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: default;
}
.form-status {
  margin: 20px 0 0;
  padding: 16px 20px;
  border-radius: 3px;
  text-align: center;
}
.form-status:empty {
  display: none;
}
.form-status.is-sent {
  background: #e0ffc7;
  border: 1px solid #b4d39b;
  color: #2f4d16;
}
.form-status.is-error {
  background: #fdeded;
  border: 1px solid var(--error);
  color: #7a1f1f;
}
@media (max-width: 600px) {
  .demo-form .fields,
  .demo-form .name {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------
   Legal text and the 404 page
   ------------------------------------------------------------------ */

.prose {
  max-width: 900px;
}
.prose p {
  font-size: 16px;
}
.not-found {
  padding: 80px 0 100px;
  text-align: center;
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */

.site-footer {
  padding: 60px 0 20px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px 70px;
}
.footer-about {
  font-size: 12px;
}
.footer-about .logo {
  display: block;
  width: 171px;
  margin: 0 0 40px 10px;
}
.footer-about .amla {
  text-align: justify;
}
.footer-about .vqf {
  display: inline-block;
  margin-top: 26px;
}
.footer-about .vqf img {
  width: 151px;
}
.footer-about .linkedin {
  display: block;
  width: 33px;
  margin-top: 18px;
}
.footer-about .linkedin img {
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.2s ease;
}
.footer-about .linkedin:hover img {
  filter: none;
}
.site-footer h2 {
  margin: 10px 0 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer li {
  margin-bottom: 20px;
}
.site-footer li a {
  color: var(--text);
}
.site-footer li a:hover {
  color: var(--primary);
}
.copyright {
  margin: 40px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .footer-about .logo {
    margin: 0 auto 30px;
  }
  .footer-about .amla {
    text-align: center;
  }
  .footer-about .linkedin {
    margin: 18px auto 0;
  }
}

/* ------------------------------------------------------------------
   Cookie notice
   ------------------------------------------------------------------ */

.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 50px;
  background: rgba(50, 50, 58, 0.95);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.cookie-notice[hidden] {
  display: none;
}
.cookie-notice a {
  color: #ff5b8a;
}
.cookie-notice .ok {
  padding: 6px 12px;
  border: 0;
  border-radius: 3px;
  background: var(--secondary);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.cookie-notice .close {
  position: absolute;
  right: 14px;
  top: 50%;
  margin-top: -14px;
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 767px) {
  .cookie-notice {
    flex-direction: column;
  }
}

/* ------------------------------------------------------------------
   Motion
   ------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
