/* migratetovivaengage.com
   Layout: one centred column (max 1120px) of full-width bands; sub pages use a narrower reading column.
   Palette: Viva blue on blue-tinted neutrals, deep navy for the featured tenant-to-tenant band. */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --muted: #51607a;
  --line: #dbe2ee;
  --accent: #0055b8;
  --accent-ink: #ffffff;
  --accent-soft: #e5eefa;
  --navy: #0a2552;
  --navy-ink: #eef3fb;
  --ok: #17734a;      --ok-bg: #e3f4ec;
  --warn: #8a5a00;    --warn-bg: #fdf1d6;
  --urgent: #a33a00;  --urgent-bg: #fde6d8;
  --closed: #5b6476;  --closed-bg: #eceff4;
  --font-display: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1422; --surface: #131e31; --ink: #e8eef8; --muted: #9aa8c0; --line: #24324a;
    --accent: #5aa2ff; --accent-ink: #06142a; --accent-soft: #15284a;
    --navy: #0f2c5e; --navy-ink: #eef3fb;
    --ok: #6fd3a2; --ok-bg: #12352a; --warn: #f2c35b; --warn-bg: #3a2c0c;
    --urgent: #ff9e6b; --urgent-bg: #40200f; --closed: #aab4c6; --closed-bg: #222d40;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1422; --surface: #131e31; --ink: #e8eef8; --muted: #9aa8c0; --line: #24324a;
  --accent: #5aa2ff; --accent-ink: #06142a; --accent-soft: #15284a;
  --navy: #0f2c5e; --navy-ink: #eef3fb;
  --ok: #6fd3a2; --ok-bg: #12352a; --warn: #f2c35b; --warn-bg: #3a2c0c;
  --urgent: #ff9e6b; --urgent-bg: #40200f; --closed: #aab4c6; --closed-bg: #222d40;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-body); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 700; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 16px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 820px; }

/* notice + header */
.notice { background: var(--navy); color: var(--navy-ink); font-size: .9rem; }
.notice .wrap { padding-block: 9px; }
.notice a { color: #fff; font-weight: 600; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.1rem; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.site-header nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; font-size: .95rem; }
.site-header nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.site-header nav a:not(.btn):hover { color: var(--accent); }
@media (max-width: 760px) { .site-header nav a:not(.btn) { display: none; } .site-header { position: static; } }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--accent); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-small { padding: 7px 14px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-light { background: #fff; color: #0a2552; border-color: #fff; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--accent); }
.link-arrow::after { content: " →"; }

/* hero */
.hero { padding-block: clamp(40px, 7vw, 80px); background: linear-gradient(180deg, var(--accent-soft), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { margin-block: 10px 18px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; margin-bottom: 26px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.eyebrow-light { color: #9cc4ff; }
.hero-sub { padding-block: clamp(32px, 5vw, 56px); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.status-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.status-date { color: var(--muted); font-size: .95rem; }

/* migrated post demo: the subject's own artefact */
.post-demo { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 12px; font-size: .95rem; }
.post-head { display: flex; gap: 10px; align-items: center; line-height: 1.35; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.post-meta { font-size: .8rem; color: var(--ok); font-weight: 600; }
.post-files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.post-files img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; background: var(--line); }
.post-foot { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); padding-top: 10px; }
.post-demo figcaption { font-size: .78rem; color: var(--muted); }

.facts { background: var(--surface); border-block: 1px solid var(--line); }
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-block: 24px; }
.fact { display: grid; gap: 2px; color: var(--muted); font-size: .95rem; }
.fact-big { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--ink); }

/* sections */
.section { padding-block: clamp(44px, 6vw, 72px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section h2 + .section-lead, .section-lead { color: var(--muted); margin-block: 8px 28px; max-width: 65ch; }
.section > .wrap > h2 { margin-bottom: 8px; }

/* platform cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: grid; align-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; min-width: 0; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card p { color: var(--muted); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card-feature { background: var(--navy); color: var(--navy-ink); border-color: var(--navy); margin-bottom: 16px; padding: 28px; grid-template-columns: 1fr auto; align-items: end; }
.card-feature h3 { font-size: 1.45rem; margin-block: 6px 8px; }
.card-feature p { color: #c9d7ee; max-width: 62ch; }
.card-feature .link-arrow { color: #fff; }

.pill { display: inline-block; white-space: nowrap; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill-closed { color: var(--closed); background: var(--closed-bg); }
.pill-urgent { color: var(--urgent); background: var(--urgent-bg); }
.pill-warning { color: var(--warn); background: var(--warn-bg); }
.pill-active { color: var(--ok); background: var(--ok-bg); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
.tile { background: var(--bg); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; align-content: start; }
.section:not(.section-alt) .tile { background: var(--surface); border: 1px solid var(--line); }
.tile p { color: var(--muted); font-size: .97rem; }

/* status table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.status { width: 100%; border-collapse: collapse; font-size: .97rem; }
.status th, .status td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.status thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.status tbody tr:last-child > * { border-bottom: 0; }
.status tbody th { white-space: nowrap; }
.src { font-size: .85rem; }
@media (max-width: 700px) {
  .table-wrap { overflow-x: visible; }
  table.status, .status tbody { display: block; }
  .status thead { display: none; }
  .status tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
  .status tbody tr:last-child { border-bottom: 0; }
  .status tbody th, .status tbody td { display: block; padding: 0; border: 0; }
  .status tbody th { white-space: normal; }
  .status tbody td:last-child { grid-column: 1 / -1; color: var(--muted); }
}

/* steps + checks */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two-col > * { min-width: 0; }
.two-col h2 { margin-bottom: 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; }
.steps h3, .steps p { grid-column: 2; }
.steps p { color: var(--muted); }
.step-n { grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.checks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-bg); box-shadow: inset 0 0 0 2px var(--ok); }
.checks li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 4px); width: 5px; height: 8px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* partners */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.section-alt .partner { background: var(--bg); }
.logo-plate { background: #fff; border: 1px solid #e3e8ef; border-radius: 10px; height: 84px; display: flex; align-items: center; padding: 0 18px; }
.logo-plate img { width: auto; max-width: 100%; object-fit: contain; display: block; }
.logo-ph { height: 44px; display: inline-grid; place-items: center; justify-self: start; padding: 0 14px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: .8rem; }
.partner p:not(.eyebrow) { color: var(--muted); font-size: .97rem; }

/* faq */
.faq { display: grid; gap: 10px; margin-top: 20px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.section-alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; font-weight: 600; padding-block: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; color: var(--muted); }

/* prose + callout */
.prose { display: grid; gap: 16px; }
.prose > p { max-width: 68ch; }
.prose h2 { margin-top: 12px; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 16px 18px; display: grid; gap: 8px; }
.sources { font-size: .85rem; color: var(--muted); }

.resources { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 0; }
.resources li { border-bottom: 1px solid var(--line); padding-block: 12px; }
.resources a { font-weight: 600; text-decoration: none; }
.resources a::after { content: " ↗"; font-weight: 400; }

.others ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.others a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); font-size: .93rem; }

.cta-band { background: var(--navy); color: var(--navy-ink); }
.cta-band .wrap { padding-block: 52px; display: grid; gap: 14px; justify-items: start; }
.cta-band p { color: #c9d7ee; max-width: 62ch; }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); font-size: .93rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-block: 40px 20px; }
.footer-grid > div { display: grid; gap: 10px; align-content: start; }
.footer-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.footer-links li { padding-block: 3px; break-inside: avoid; }
.footer-links a { color: var(--muted); }
.footer-small { padding-block: 16px 32px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: .82rem; }

@media (max-width: 960px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .cards, .partners { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .cards, .partners, .grid-4, .grid-2, .facts-row, .footer-grid { grid-template-columns: 1fr; }
  .card-feature { grid-template-columns: 1fr; }
  .footer-links { columns: 1; }
  .lead { font-size: 1.08rem; }
}

/* partner logo strip: always a clean white bar so every logo sits on the background it was made for */
.logos { background: #fff; border-block: 1px solid #e3e8ef; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 36px; padding-block: 24px; }
.logo-row img { width: auto; max-width: 190px; object-fit: contain; display: block; }
@media (max-width: 620px) { .logo-row { justify-content: center; gap: 18px 28px; } .logo-row img { max-height: 30px; max-width: 140px; } }

/* SAP Jam countdown feature */
.sap-feature { background: var(--navy); color: var(--navy-ink); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); margin-bottom: 16px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.sap-feature > * { min-width: 0; }
.sap-text { display: grid; gap: 12px; justify-items: start; }
.sap-text > div { display: grid; gap: 10px; }
.sap-feature h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.sap-feature p:not(.eyebrow) { color: #c9d7ee; max-width: 56ch; }
.cd-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cd-unit { display: grid; justify-items: center; gap: 2px; padding: 14px 6px; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.cd-unit b { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.cd-unit small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #9cc4ff; }
.countdown-inline { margin-top: 16px; max-width: 460px; }
.countdown-inline .cd-unit { background: var(--surface); border-color: var(--line); }
.countdown-inline .cd-unit b { color: var(--urgent); }
.countdown-inline .cd-unit small { color: var(--muted); }
.countdown-inline .cd-after { font-weight: 600; }
@media (max-width: 760px) { .sap-feature { grid-template-columns: 1fr; } }

/* 404 */
.notfound h1 { margin-top: 4px; }
.nf-links { columns: 2; gap: 24px; }
@media (max-width: 620px) { .nf-links { columns: 1; } }

/* contact form */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-foot .small { font-size: .85rem; margin: 0; flex: 1 1 260px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.form-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); border: 1px solid var(--ok); }
.form-err { background: color-mix(in srgb, #d64545 12%, transparent); border: 1px solid #d64545; }
@media (max-width: 620px) { .contact-form { grid-template-columns: 1fr; } }
