/* Self-hosted fonts (Montserrat, IBM Plex Mono; SIL Open Font Licence 1.1). No requests to Google. */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/IBMPlexMono-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/IBMPlexMono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/IBMPlexMono-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/IBMPlexMono-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 200 700; font-display: swap; src: url('../fonts/Montserrat-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 200 700; font-display: swap; src: url('../fonts/Montserrat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Actrand brand tokens (Brand Guidelines v4) */
:root {
  --purple: #572961;
  --purple-dark: #3F1E46;
  --tint: #F5F2F6;
  --white: #FFFFFF;
  --black: #000000;
  --muted: #595959;
  --line: #D9D9D9;
  --blue: #6971E1;
  --coral: #E37373;
  --green: #95D07D;
  --yellow: #F5E855;
  --orchid: #C97AC0;

  --font: "Montserrat", Calibri, Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --radius: 14px;
  --wrap: 1100px;
  --gradient: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--purple); }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
strong, b { font-weight: 600; }
em, i { font-style: normal; }                 /* brand: no italics; emphasis is SemiBold */
em { font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--muted); }
.mono, code { font-family: var(--mono); font-weight: 500; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--purple); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Notice (editable snippet) */
.notice { background: var(--tint); border-bottom: 1px solid #E4DCE6; font-size: .93rem; }
.notice .wrap { padding-top: 10px; padding-bottom: 10px; border-left: 4px solid var(--yellow); }
.notice p { margin: 0; }

/* Orbit Field: the mark, oversized, white at 4.5% on dark, off-centre, never rotated */
.orbit-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orbit-field::before {
  content: "";
  position: absolute;
  width: 120%;
  aspect-ratio: 1;
  right: -45%;
  top: -35%;
  background: var(--white);
  -webkit-mask: url("../img/mark.png") center / contain no-repeat;
          mask: url("../img/mark.png") center / contain no-repeat;
  opacity: .045;
  filter: blur(2px);
}
.cta .orbit-field::before { width: 150%; right: -85%; top: -95%; }
.cta > *:not(.orbit-field) { position: relative; }

/* Header and hero */
.hero { position: relative; color: var(--white); background: var(--gradient); overflow: hidden; padding-bottom: 56px; }
.hero-home { padding-bottom: 96px; }
.nav { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.brand img { display: block; width: 120px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-block; color: var(--white); font-weight: 600; font-size: .95rem; padding: 8px 16px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px; text-decoration: none; transition: background .15s ease; }
.nav-link:hover { background: rgba(255,255,255,.12); }
.nav-link.current { background: var(--white); color: var(--purple); border-color: var(--white); }
.nav-toggle { display: none; font: 600 .95rem var(--font); color: var(--white); background: transparent; padding: 8px 18px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px; cursor: pointer; }
.nav-toggle:hover { background: rgba(255,255,255,.12); }
.hero-body { position: relative; padding-top: 28px; max-width: 820px; margin-left: 0; }
@media (min-width: 1100px) { .hero-body { margin-left: calc((100% - var(--wrap)) / 2); } }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; margin: 0 0 14px; }
.hero .eyebrow { opacity: .85; }
.hero h1 { font-size: clamp(1.7rem, 4.4vw, 2.8rem); margin: 0; overflow-wrap: anywhere; }
.hero-home h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.hero h1 em, .thin { display: block; font-weight: 200; }   /* light second line of a marketing headline */
.hero .lead { margin: 14px 0 0; font-size: 1.1rem; opacity: .9; }
.hero .lead a { color: inherit; }
.hero .actions { margin-top: 28px; }

/* Main content */
.main { padding-bottom: 24px; }
.overlap { position: relative; margin-top: -28px; margin-bottom: 48px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.panel { padding: 28px; box-shadow: 0 10px 30px rgba(63,30,70,.08); }
.section { padding: 72px 0; }
.section.tint { background: var(--tint); }
.main > .section:last-child { margin-bottom: 0; }
.has-overlap .section:first-of-type { padding-top: 24px; }
.prose > :first-child, .card > :first-child, .cta > :nth-child(2) { margin-top: 0; }
.prose > :last-child, .card > :last-child, .cta > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol, .prose .table-wrap { max-width: 760px; }
.prose li { margin-bottom: .35em; }
.prose h2, .section-title { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--purple); margin-top: 1.4em; }
.section .section-title { margin-top: 0; }
.section .eyebrow { color: var(--purple); }
.prose h3 { font-size: 1.15rem; color: var(--purple); margin-top: 1.4em; }
.prose h4 { font-size: 1rem; font-weight: 600; margin: 1.2em 0 .4em; }
.lede { font-size: 1.12rem; margin: 0 0 28px; }
.prose img { border-radius: var(--radius); }
.prose img[src^="/assets/theme/"] { border-radius: 0; }  /* theme graphics (e.g. partner badges) keep their own shape */
/* A paragraph of two or more images on their own (e.g. partner logos) becomes a centred logo strip */
.prose p:has(> img ~ img) { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; max-width: none; margin: 8px 0 32px; }
.prose p:has(> img ~ img) img { width: auto; height: auto; max-height: 100px; max-width: 100%; }
.prose p:has(> img ~ img) + .actions { justify-content: center; max-width: none; margin-top: 0; }
.prose blockquote { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* Cards: each ### in the Markdown */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 8px 0 32px; }
.cards:last-child { margin-bottom: 0; }
.cards:has(> :nth-child(2):last-child), .cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
.overlap > .cards { margin-top: 0; }
.overlap > .cards .card { box-shadow: 0 10px 30px rgba(63,30,70,.08); }
.overlap > .cards + * { margin-top: 32px; }
.value { font-family: var(--mono); font-size: 1.05rem; overflow-wrap: anywhere; }
.value a { color: var(--black); text-decoration-color: var(--line); }
.value a:hover { color: var(--purple); }
.card.service { padding: 28px; transition: transform .2s ease, box-shadow .2s ease; }
.card.service:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(63,30,70,.10); }
.card.service h3 { margin: 0 0 .5em; font-size: 1.15rem; color: var(--purple); }
.card.service p, .card.service ul { max-width: none; }
.card.service > :last-child { margin-bottom: 0; }
.card.service .icon + h3 { margin-top: 18px; }
/* A card whose body is just an image (e.g. website screenshots): the image sits edge to edge at the top */
.card.service:has(> p > img:only-child) { display: flex; flex-direction: column; }
.card.service > p:has(> img:only-child) { order: -1; margin: -28px -28px 22px; border-bottom: 1px solid var(--line); }
.card.service > p:has(> img:only-child) img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 0; }
.card.service:has(> p > img:only-child) > p:not(:has(> img)) { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
/* QR codes (e.g. /mfa app downloads) sit centred in the card, not edge to edge */
.card.service > p:has(> img[src*="/qr-"]:only-child) { order: 0; margin: 0 0 18px; border-bottom: 0; text-align: center; }
.card.service > p:has(> img[src*="/qr-"]:only-child) img { display: inline-block; width: 200px; max-width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 0; }
.accent { position: relative; overflow: hidden; }
.accent::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--purple); }
.cards .accent:nth-child(5n+1)::before { background: var(--blue); }
.cards .accent:nth-child(5n+2)::before { background: var(--coral); }
.cards .accent:nth-child(5n+3)::before { background: var(--green); }
.cards .accent:nth-child(5n+4)::before { background: var(--yellow); }
.cards .accent:nth-child(5n+5)::before { background: var(--orchid); }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--tint); color: var(--purple); font-size: 1.4rem; }
.tint .icon { background: var(--white); border: 1px solid #E4DCE6; }

/* Buttons: a paragraph of only links */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.cards + .actions { justify-content: center; max-width: none; margin-top: 0; }  /* buttons after a card grid (end the cards with ---) */
.btn { display: inline-block; font-family: var(--font); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; text-align: center; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: var(--purple-dark); }
.btn-light { background: var(--white); color: var(--purple); }
.btn-outline { color: var(--purple); border: 1.5px solid var(--purple); padding: 12.5px 26.5px; background: var(--white); }
.btn-outline-light { color: var(--white); border: 1.5px solid rgba(255,255,255,.5); padding: 12.5px 26.5px; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); box-shadow: none; }

/* Call-to-action panel: a > quote in the Markdown */
.cta { position: relative; overflow: hidden; border-radius: 22px; padding: 56px 40px; text-align: center; color: var(--white); background: var(--gradient); margin: 32px 0; }
.cta h2, .cta h3 { color: var(--white); margin: 0 0 12px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta p { opacity: .92; max-width: 560px; margin: 0 auto 12px; }
.cta a:not(.btn) { color: var(--white); }
.cta .actions { justify-content: center; opacity: 1; max-width: none; margin-top: 26px; }

/* Tables */
.table-wrap { margin: 8px 0 28px; max-width: none !important; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.brand-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.brand-table th, .brand-table td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.brand-table th:first-child, .brand-table td:first-child { text-align: left; }
.brand-table thead th { color: var(--purple); font-weight: 600; background: var(--white); }
.brand-table tbody tr:last-child > * { border-bottom: 0; }
.brand-table td.has-mark { white-space: nowrap; }
.brand-table td.has-mark .mark { margin-right: 6px; vertical-align: middle; }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: .9rem; font-weight: 700; line-height: 1; flex: none; }
.mark.yes { background: var(--green); color: var(--black); }
.mark.no { background: var(--coral); }
.mark.no::before { content: ""; width: 12px; height: 3px; border-radius: 2px; background: var(--white); }
.mark.charge { background: var(--yellow); color: var(--black); }
.mark.block { background: var(--purple); color: var(--white); }
.mark-key { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
.mark-key > span { display: inline-flex; align-items: center; gap: 6px; }
.mark-key .mark { width: 22px; height: 22px; font-size: .78rem; }

/* Footer */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer p { margin: 0; }
.footer a { color: var(--purple); }
.footer img { width: 90px; }
.footer-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 521px) {
  .footer { display: grid; grid-template-columns: 1fr auto 1fr; }
  .footer-social { justify-self: center; }
  .footer > p:not(.footer-legal) { justify-self: end; text-align: right; }
  .footer .footer-legal { grid-column: 1 / -1; }
}
.footer .footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--purple); color: var(--white); font-size: 1.1rem; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.footer .footer-social a:hover { background: var(--purple-dark); transform: translateY(-1px); }
.footer .footer-legal { width: 100%; font-size: .8rem; }
.footer .footer-legal a { color: inherit; }

/* Screens */
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .js .nav-toggle { display: inline-block; }
  .js .nav-links { display: none; width: 100%; flex-direction: column; padding-top: 8px; }
  .js .nav-links.open { display: flex; }
  .js .nav-link { display: block; text-align: center; }
}
@media (max-width: 520px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .overlap { max-width: none; }
  .panel, .card.service { padding: 22px; }
  .card.service > p:has(> img:only-child) { margin: -22px -22px 18px; }
  .section { padding: 48px 0; }
  .cards, .cards:has(> :nth-child(2):last-child), .cards:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .cta { padding: 40px 22px; }
  .footer { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Print: a clean document */
@media print {
  .nav, .actions, .btn, .orbit-field, .skip, .notice { display: none !important; }
  .hero { background: none; color: var(--black); padding-bottom: 0; }
  .hero h1 { color: var(--purple); }
  .overlap { margin-top: 0; }
  .panel, .card { box-shadow: none; }
  .section { padding: 24px 0; }
  .section.tint { background: none; }
  .cta { background: none; color: var(--black); border: 1px solid var(--line); }
  .cta h2, .cta h3 { color: var(--purple); }
  .cards { grid-template-columns: 1fr 1fr; }
  .card { break-inside: avoid; }
}
