/* Layout for the public marketing pages only — page-specific, unlike
   tokens.css which is shared with id/portal. No React runtime here; this
   plus plain HTML is the entire front-end for this app, by design (SEO —
   see backend-requirements/API_CONTRACT.md and the plan's marketing
   section for why). */

.mkt-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
/* The cookie bar, skip link, language list, accessibility panel, focus ring,
   text-size scale and the high-contrast / reduced-motion / underlined-links
   modes are the design authority's (@viaforte/da: /assets/da/styles.css and
   /assets/da/tokens.css, WP-WEB-05) and are no longer styled here. The one
   Website-specific addition: its buttons are .mkt-btn, which DA's underlined-
   links rule (it excludes .vf-btn) does not know. */
:root[data-underline-links="true"] a.mkt-btn { text-decoration: none !important; }
.mkt-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: .9em 1.4em;
  display: flex;
  align-items: center;
  gap: 1.4em;
}
.mkt-brand { display: flex; align-items: center; gap: .5em; font-weight: 700; color: var(--ink); flex-shrink: 0; white-space: nowrap; }
.mkt-wordmark { display: block; height: 22px; width: auto; }
.mkt-wordmark--footer { height: 18px; }
.mkt-nav { display: flex; gap: 1.1em; flex: 1; font-size: 13.5px; min-width: 0; }
.mkt-nav a { color: var(--ink-dim); white-space: nowrap; }
.mkt-nav a:hover { color: var(--accent); text-decoration: none; }
.mkt-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
/* A header group (v0.5.0): no page ships one today (DefaultNav() has none),
   but an editor can add one, so it needs to render as more than an
   unstyled <details> the first time that happens. Modelled on
   .mkt-language's own dropdown. */
.mkt-nav__group { position: relative; }
.mkt-nav__group > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .35rem; color: var(--ink-dim); white-space: nowrap; }
.mkt-nav__group > summary::-webkit-details-marker { display: none; }
.mkt-nav__group > summary:hover { color: var(--ink); }
.mkt-nav__group > summary[aria-current="true"] { color: var(--ink); font-weight: 650; }
.mkt-nav__chevron { width: .42rem; height: .42rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.12rem) rotate(45deg); transition: transform .16s ease; }
.mkt-nav__group[open] > summary .mkt-nav__chevron { transform: translateY(.1rem) rotate(225deg); }
.mkt-nav__group-menu {
  position: absolute; left: -.65rem; top: calc(100% + .8rem); z-index: 1; display: flex; flex-direction: column; gap: .1rem;
  min-width: 220px; padding: .55rem; background: #fff; color: #16221f; border: 1px solid #dfe8e6;
  border-radius: 10px; box-shadow: 0 18px 48px rgba(11, 26, 24, .16);
}
.mkt-nav__group-menu a { padding: .55rem .65rem; color: #16221f; border-radius: 7px; white-space: nowrap; }
.mkt-nav__group-menu a:hover { background: #f2f8f7; color: #12554e; text-decoration: none; }
.mkt-nav__products-menu { left: -.75rem; min-width: 440px; gap: 0; padding: .75rem; border-radius: 14px; }
.mkt-nav__products-heading { display: flex; align-items: center; justify-content: space-between; padding: .15rem .05rem .65rem; color: #596966; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.mkt-nav__products-heading > span:last-child { color: #7a8885; font-size: 13px; }
.mkt-nav__products-menu a { border-radius: 0; white-space: normal; }
.mkt-nav__product { display: flex; align-items: center; gap: .8rem; min-height: 82px; padding: .9rem .05rem !important; border-bottom: 1px solid #e8edec; }
.mkt-nav__product-icon { width: 2.6rem; height: 2.6rem; flex: 0 0 2.6rem; display: grid; place-items: center; color: #168f80; background: #f1f6f5; border-radius: 12px; }
.mkt-nav__product-icon svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mkt-nav__product-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: .22rem; }
.mkt-nav__product-copy strong { color: var(--ink); font-size: 13.5px; line-height: 1.25; }
.mkt-nav__product-copy > span { max-width: 44ch; color: var(--ink-dim); font-size: 12px; font-weight: 400; line-height: 1.35; }
.mkt-nav__item-arrow { flex: 0 0 auto; color: #73817e; font-size: 25px; font-weight: 300; line-height: 1; }
.mkt-nav__all-products { display: flex; align-items: center; justify-content: space-between; margin-top: 0; padding: 1rem .05rem .25rem !important; color: var(--ink) !important; font-size: 12.5px; font-weight: 650; }
.mkt-nav__all-products .mkt-nav__item-arrow { font-size: 17px; }
.mkt-nav__products-menu a:hover { background: transparent; }
.mkt-nav__products-menu a:hover strong, .mkt-nav__products-menu a:hover.mkt-nav__all-products { color: var(--accent); }
.mkt-menu .mkt-nav__group-menu { position: static; min-width: 0; margin-top: .35rem; box-shadow: none; border: none; padding: .25rem 0 .25rem .55rem; background: transparent; }
.mkt-menu .mkt-nav__group-menu a { color: var(--ink); }
.mkt-menu .mkt-nav__group-menu a:hover { background: var(--surface-alt); }
.mkt-menu .mkt-nav__products-menu { width: auto; padding: .45rem .75rem .25rem; }
.mkt-menu .mkt-nav__products-menu a:hover { background: transparent; }
.mkt-menu .mkt-nav__product { min-height: 76px; }
.mkt-cta { margin-left: auto; flex-shrink: 0; }
.mkt-menu { display: none; position: relative; }
.mkt-menu summary {
  cursor: pointer; list-style: none; padding: .55em .8em;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-weight: 600;
}
.mkt-menu summary::-webkit-details-marker { display: none; }
.mkt-menu nav {
  position: absolute; right: 0; top: calc(100% + .6rem); width: min(92vw, 400px);
  display: flex; flex-direction: column; padding: .55rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.mkt-menu nav a { padding: .75rem; color: var(--ink); border-radius: var(--radius-sm); }
.mkt-menu nav a:hover { background: var(--surface-alt); text-decoration: none; }
.mkt-menu .mkt-nav__group > summary { padding: .75rem; color: var(--ink); }

/* Below this, five nav links plus brand and CTA don't fit without
   wrapping mid-word — hide the links rather than let that happen. A real
   hamburger menu needs JS this app deliberately doesn't have; narrower
   still than this is treated as "brand + sign-in only" for now. */
@media (max-width: 640px) {
  .mkt-nav { display: none; }
  .mkt-cta { display: none; }
  .mkt-menu { display: block; margin-left: auto; position: static; }
  /* Anchored to the sticky header, not the Menu button, so the panel stays
     on screen at 375 px (it was cut off at the left edge). */
  .mkt-menu nav { left: 1rem; right: 1rem; width: auto; top: calc(100% + .4rem); max-height: calc(100vh - 6rem); overflow-y: auto; }
}

.mkt-btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: .55em 1.1em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  background: var(--accent);
  color: #fff;
}
.mkt-btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.mkt-btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--border-strong); }
.mkt-btn--ghost:hover { background: var(--surface-alt); color: var(--ink); }

.mkt-hero { max-width: 1080px; margin: 0 auto; padding: 4.5em 1.4em 3em; }
.mkt-hero__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }
.mkt-hero h1 { font-size: calc(40px * var(--a11y-scale, 1)); max-width: 18ch; margin-bottom: .4em; }
.mkt-hero p { font-size: 16px; color: var(--ink-dim); max-width: 56ch; }
.mkt-hero__actions { display: flex; gap: .8em; margin-top: 1.6em; }

.mkt-section { max-width: 1080px; margin: 0 auto; padding: 3em 1.4em; }
.mkt-section h2 { font-size: calc(26px * var(--a11y-scale, 1)); margin-bottom: .5em; }
.mkt-section p { color: var(--ink-dim); max-width: 64ch; }
.mkt-section--tint { max-width: none; background: var(--accent-dim); }
.mkt-section--tint > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.mkt-section__actions { display: flex; flex-wrap: wrap; gap: .8em; margin-top: 1.4em; }
.mkt-prose h2 { margin-top: 1.8em; }

.mkt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2em; margin-top: 1.6em; }
.mkt-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3em; }
.mkt-card h3 { font-size: 15px; margin-bottom: .4em; }
.mkt-card p { font-size: 13.5px; margin: 0; }
.mkt-card--link { display: block; color: inherit; }
.mkt-card--link:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.mkt-proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.mkt-proof__item { padding: 1rem; border-left: 3px solid var(--accent); }
.mkt-proof__value { display: block; color: var(--ink); font-size: 18px; font-weight: 700; }
.mkt-proof__label { display: block; margin-top: .25rem; color: var(--ink-dim); font-size: 13px; }
.mkt-placeholder { color: var(--warn-ink); background: var(--warn-dim); border-radius: 3px; padding: .05em .3em; }

.mkt-form { max-width: 460px; display: flex; flex-direction: column; gap: 1em; }
.mkt-form label { font-size: 12.5px; font-weight: 600; color: var(--ink-dim); display: block; margin-bottom: .35em; }
.mkt-form input, .mkt-form textarea {
  width: 100%;
  font: inherit;
  padding: .6em .75em;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
.mkt-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5em; align-items: start; }
.mkt-contact__form { min-width: 0; }
.mkt-contact__address { font-style: normal; color: var(--ink-dim); line-height: 1.6; }
.mkt-contact__address strong { color: var(--ink); font-size: 1.05em; }
.mkt-contact__aside { min-width: 0; }
.mkt-contact__photo { margin: 1.4em 0 0; max-width: 100%; }
.mkt-contact__photo img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: var(--radius-sm); }
@media (min-width: 800px) {
  .mkt-contact__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4em; }
}
@media (max-width: 640px) {
  .mkt-contact { padding-left: 16px; padding-right: 16px; }
}
.mkt-form__hint { font-size: 12px; color: var(--ink-faint); }
.mkt-form__notice { font-size: 12.5px; color: var(--ink-dim); }
.mkt-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.mkt-footer { border-top: 1px solid var(--border); color: var(--ink-faint); font-size: 12.5px; }

.mkt-footer__top {
  max-width: 1080px; margin: 0 auto; padding: 2.6em 1.4em 2em;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2em;
}
@media (max-width: 640px) { .mkt-footer__top { grid-template-columns: 1fr; } .mkt-footer__address { flex-basis: 100%; } }
.mkt-footer__brand .mkt-brand { color: var(--ink); margin-bottom: .5em; }
.mkt-footer__tagline { margin: 0; max-width: 32ch; }
.mkt-footer__col { display: flex; flex-direction: column; gap: .55em; }
.mkt-footer__col a { font-size: 13px; color: var(--ink-dim); }
.mkt-footer__col a:hover { color: var(--accent); text-decoration: none; }
.mkt-footer__heading { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .3em; }

.mkt-footer__bottom {
  border-top: 1px solid var(--border);
  max-width: 1080px; margin: 0 auto; padding: 1.1em 1.4em;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5em;
}
.mkt-footer__address { flex: 1 1 auto; min-width: 0; text-align: center; font-style: normal; }
.mkt-footer__bottom a { color: var(--ink-faint); }
.mkt-footer__bottom a:hover { color: var(--accent); }

.mkt-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mkt-card li { font-size: 12.5px; color: var(--ink-dim); padding: .3em 0; border-bottom: 1px dotted var(--border); }
.mkt-card li:last-child { border-bottom: none; }

.mkt-linklist { display: flex; flex-wrap: wrap; gap: .6em 1.4em; margin-top: 1.6em; }
.mkt-linklist a { font-size: 14px; }

.mkt-feature { display: flex; align-items: center; gap: 2.6em; }
.mkt-feature--reverse { flex-direction: row-reverse; }
.mkt-feature__img {
  flex: 1 1 46%; min-width: 260px; max-width: 480px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1em;
}
.mkt-feature__text { flex: 1 1 46%; min-width: 260px; }
.mkt-feature__text h2 { font-size: 24px; margin: .3em 0 .5em; }
.mkt-feature__text p { color: var(--ink-dim); margin: 0; }
@media (max-width: 760px) {
  .mkt-feature, .mkt-feature--reverse { flex-direction: column; }
  .mkt-hero { padding-top: 3.2em; }
  .mkt-hero h1 { font-size: clamp(32px, 10vw, 40px); }
  .mkt-hero__actions { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---- T-WEB-CONTRAST: theme-paired surfaces, controls and buttons ----
   Rule: a component that hard-codes a surface sets its own text colour, and
   every light surface has a dark twin or lives in a light island below.
   scripts/check-contrast.mjs (and TestContrastAudit) enforce WCAG AA. */

:root { --vf-on-accent: #fff; --vf-focus: var(--accent); --ink-dim: #55645f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --vf-on-accent: #06211e; --vf-focus: #59d6ca; color-scheme: dark; }
}
:root[data-theme="dark"] { --vf-on-accent: #06211e; --vf-focus: #59d6ca; color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

/* Pages designed on a light canvas keep it in both themes ("light islands"):
   the tokens are pinned together so ink never lands on a mismatched surface. */
.vf-connect, .vf-sase, .vf-trust, .vf-partners, .vf-platform {
  --bg: #f6f8f8; --surface: #ffffff; --surface-alt: #f4f7f7;
  --border: #dbe3e2; --border-strong: #c3cecc;
  --ink: #16221f; --ink-dim: #4a5c56;
  --accent: #0c514a; --accent-hover: #083f39; --accent-dim: #e3f4f1;
  --vf-on-accent: #fff; --vf-focus: #0c514a; color-scheme: light;
  background: var(--surface); color: var(--ink);
}

/* Footer: the DA --ink-faint is below AA on both canvases. */
.mkt-footer, .mkt-footer__heading, .mkt-footer__bottom a, .mkt-form__hint { color: var(--ink-dim); }
.mkt-footer__bottom a:hover { color: var(--accent); }

/* Header menus: surface and text come from tokens, not a fixed light panel. */
.mkt-nav__group-menu { background: var(--surface); color: var(--ink); border-color: var(--border); }
.mkt-nav__group-menu a { color: var(--ink); }
.mkt-nav__group-menu a:hover { background: var(--accent-dim); color: var(--accent); }
.mkt-nav__products-heading { color: var(--ink-dim); }
.mkt-nav__products-heading > span:last-child, .mkt-nav__item-arrow { color: var(--ink-dim); }
.mkt-nav__product { border-bottom-color: var(--border); }
.mkt-nav__product-icon { color: var(--accent); background: var(--accent-dim); }
.mkt-nav__product-copy strong, .mkt-nav__all-products { color: var(--ink) !important; }
.mkt-nav__product-copy > span { color: var(--ink-dim); }

/* Buttons */
.mkt-btn, .vf-a11y > summary { color: var(--vf-on-accent); }
.mkt-btn:hover { color: var(--vf-on-accent); }
.mkt-btn {
  box-sizing: border-box; min-height: 44px; justify-content: center; text-align: center;
  padding: .65em 1.25em; border: 1px solid transparent; border-radius: 10px;
  font: inherit; font-size: 16px; font-weight: 650; line-height: 1.2; cursor: pointer;
  transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease;
  -webkit-appearance: none; appearance: none;
}
.mkt-btn:active { transform: translateY(1px); }
.mkt-btn:focus-visible { outline: 3px solid var(--vf-focus); outline-offset: 2px; }
.mkt-btn:disabled, .mkt-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.mkt-btn[aria-busy="true"] { cursor: progress; opacity: .8; }
.mkt-btn--ghost { color: var(--ink); border-color: var(--border-strong); }
.mkt-btn--ghost:hover { color: var(--ink); }
.mkt-form .mkt-btn { width: 100%; }

/* Form controls */
.mkt-form { gap: 1.1em; }
.mkt-form label { font-size: 14px; color: var(--ink); }
.mkt-form label:has(> input[type="checkbox"]) { display: flex; align-items: flex-start; gap: .7em; font-weight: 400; color: var(--ink-dim); }
.mkt-form input:not([type="checkbox"]):not([type="hidden"]), .mkt-form select, .mkt-form textarea {
  box-sizing: border-box; width: 100%; min-height: 44px; padding: .65em .85em;
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--ink);
  background-color: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .14s ease, box-shadow .14s ease, background-color .14s ease;
}
.mkt-form textarea { min-height: 8em; resize: vertical; }
.mkt-form select {
  padding-right: 2.6em; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2366756f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .95em center; background-size: .8em;
}
:root[data-theme="dark"] .mkt-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23b4c0bd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mkt-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23b4c0bd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  }
}
.mkt-form select option { background-color: var(--surface); color: var(--ink); }
.mkt-form input::placeholder, .mkt-form textarea::placeholder { color: var(--ink-dim); opacity: 1; }
.mkt-form input:not([type="checkbox"]):hover, .mkt-form select:hover, .mkt-form textarea:hover { border-color: var(--ink-dim); }
.mkt-form input:not([type="checkbox"]):focus-visible, .mkt-form select:focus-visible, .mkt-form textarea:focus-visible {
  outline: none; border-color: var(--vf-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vf-focus) 35%, transparent);
}
.mkt-form :is(input, select, textarea):disabled { opacity: .6; cursor: not-allowed; background-color: var(--surface-alt); }
.mkt-form :is(input, select, textarea)[aria-invalid="true"],
.mkt-form :is(input, select, textarea):user-invalid { border-color: var(--danger); }
.mkt-form input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none; width: 1.25em; height: 1.25em; margin: .15em 0 0;
  border: 1.5px solid var(--border-strong); border-radius: 5px; background: var(--surface); cursor: pointer;
}
.mkt-form input[type="checkbox"]:checked {
  background-color: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.3 2.4 2.4 4.6-5'/%3E%3C/svg%3E");
  background-position: center; background-repeat: no-repeat; background-size: 80%;
}
:root[data-theme="dark"] .mkt-form input[type="checkbox"]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2306211e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.3 2.4 2.4 4.6-5'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mkt-form input[type="checkbox"]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2306211e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.3 2.4 2.4 4.6-5'/%3E%3C/svg%3E"); }
}
.mkt-form input[type="checkbox"]:focus-visible { outline: 3px solid var(--vf-focus); outline-offset: 2px; }
.mkt-form__notice { color: var(--ink-dim); }
