/* Rogo marketing site — shared base, nav, footer, consent UI.
   Values ported verbatim from DESIGN-TOKENS.md and design-source/Site Nav.dc.html
   and Site Footer.dc.html. Per-page style deltas live inline in each page's <head>. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Nunito Sans', sans-serif; color: #2F2F2F; background: #FFFFFF; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: #456AB2; }
a:hover { color: #233C65; }
:focus-visible { outline: 3px solid #456AB2; outline-offset: 2px; border-radius: 4px; }
button { font-family: inherit; }

/* ============ Skip link ============ */
.skip-link {
  position: absolute; left: -9999px; top: 16px; z-index: 300;
  background: #233C65; color: #FFFFFF; padding: 12px 20px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-family: 'Nunito Sans', sans-serif;
}
.skip-link:focus { left: 16px; }

/* ============ Header / nav ============ */
.site-header {
  position: sticky; top: 0; z-index: 200; background: #FFFFFF; border-bottom: 1px solid #E7E8E5;
  font-family: 'Nunito Sans', sans-serif;
}
.nav-row { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.nav-inner { display: flex; align-items: center; gap: 36px; height: 78px; }
.brand-link { text-decoration: none; display: flex; align-items: center; flex: none; }
.brand-logo { height: 36px; width: auto; display: block; }

.nav-desktop { display: none; align-items: center; gap: 4px; flex: 1; }
.nav-item-wrap { display: block; }
.nav-btn {
  background: none; border: none; font: inherit; font-size: 16px; font-weight: 600; color: #233C65;
  padding: 10px 12px; cursor: pointer; border-radius: 8px; display: flex; align-items: center; gap: 6px;
}
.nav-btn:hover { background: #F3F4F1; }
.nav-caret { font-size: 10px; color: #EA6D36; }
.nav-link { font-size: 16px; font-weight: 600; color: #233C65; padding: 10px 12px; text-decoration: none; border-radius: 8px; }
.nav-link:hover { background: #F3F4F1; color: #233C65; }

.nav-right { display: none; flex: none; align-items: center; gap: 16px; }
.region-toggle { display: flex; align-items: center; border: 1.5px solid #233C65; border-radius: 999px; overflow: hidden; }
.region-btn { border: none; font: inherit; font-size: 13px; font-weight: 800; padding: 7px 13px; cursor: pointer; line-height: 1; background: transparent; color: #233C65; }
.region-btn[aria-pressed="true"] { background: #233C65; color: #FFFFFF; }
.btn-demo-desktop, .btn-demo-mobile {
  background: #EA6D36; color: #FFFFFF; font-weight: 800; border-radius: 999px; text-decoration: none; display: inline-block;
}
.btn-demo-desktop { font-size: 17px; padding: 13px 26px; }
.btn-demo-desktop:hover, .btn-demo-mobile:hover { background: #D45A24; color: #FFFFFF; }
.btn-demo-mobile { flex: none; font-size: 14px; padding: 9px 15px; white-space: nowrap; }

.nav-mobile-bar { display: flex; flex: 1; margin-left: auto; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.burger-btn {
  flex: none; background: none; border: none; border-radius: 10px; padding: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -6px; color: #233C65;
}
.burger-btn:hover { background: #F3F4F1; }
.icon-burger-close { display: none; }
.burger-btn[aria-expanded="true"] .icon-burger-open { display: none; }
.burger-btn[aria-expanded="true"] .icon-burger-close { display: block; }

/* Dropdowns (desktop) */
.dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 280px; background: #FFFFFF;
  border: 1px solid #E7E8E5; border-radius: 16px; box-shadow: 0 20px 44px rgba(35,60,101,0.14); padding: 14px; z-index: 210;
}
.dropdown.is-open { display: block; }
.dropdown-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.dropdown-link { display: block; padding: 9px 12px; border-radius: 10px; color: #2F2F2F; font-size: 15.5px; text-decoration: none; }
.dropdown-link:hover { background: #F3F4F1; color: #233C65; }
.dropdown-link-desc { padding: 8px 10px; }
.dd-title { display: block; font-size: 15.5px; font-weight: 600; color: #233C65; }
.dd-desc { display: block; font-size: 13px; color: #5B6474; }

.mega-panel {
  display: none; position: absolute; left: 28px; right: 28px; top: 78px; background: #FFFFFF;
  border: 1px solid #E7E8E5; border-radius: 0 0 22px 22px; box-shadow: 0 28px 56px rgba(35,60,101,0.16);
  padding: 36px 40px; grid-template-columns: 1fr 1.7fr 1fr; gap: 44px; z-index: 210;
}
.mega-panel.is-open { display: grid; }
.mega-col-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mega-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.mega-dot-create { border: 3px solid #456AB2; }
.mega-dot-deliver { border: 3px solid #EA6D36; }
.mega-dot-understand { border: 3px solid #66BEB8; }
.mega-label { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #233C65; }
.mega-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mega-list .dropdown-link { padding: 8px 10px; }
.mega-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; }
.mega-col-deliver { border-left: 1px solid #E7E8E5; border-right: 1px solid #E7E8E5; padding: 0 40px; }

/* Mobile accordion nav */
.nav-mobile-panel {
  display: none; position: absolute; left: 0; right: 0; top: 78px; background: #FFFFFF; border-bottom: 1px solid #E7E8E5;
  box-shadow: 0 28px 56px rgba(35,60,101,0.16); padding: 8px 20px 22px; max-height: calc(100vh - 78px);
  box-sizing: border-box; overflow: auto; -webkit-overflow-scrolling: touch; z-index: 210; flex-direction: column;
}
.nav-mobile-panel.is-open { display: flex; }
.accordion-sec { border-bottom: 1px solid #EFEFED; }
.accordion-btn {
  width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: none; border: none; padding: 14px 4px; font: inherit; font-size: 17px; font-weight: 800; color: #233C65;
  text-align: left; cursor: pointer;
}
.accordion-btn .chev { display: flex; align-items: center; color: #456AB2; transition: transform 0.15s ease; }
.accordion-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.accordion-list { list-style: none; margin: 0; padding: 0 0 12px; display: none; flex-direction: column; }
.accordion-list.is-open { display: flex; }
.accordion-link { display: block; min-height: 44px; padding: 11px 4px 11px 16px; border-left: 2px solid #E7E8E5; color: #2F2F2F; font-size: 16px; text-decoration: none; }
.accordion-link-strong { font-weight: 700; }
.mobile-flat-links { display: flex; flex-direction: column; padding-top: 4px; }
.mobile-flat-link { display: block; min-height: 52px; padding: 15px 4px; font-size: 17px; font-weight: 800; color: #233C65; text-decoration: none; border-bottom: 1px solid #EFEFED; }
.mobile-flat-link-last { border-bottom: none; }
.mobile-region { border-top: 1px solid #E7E8E5; margin-top: 6px; padding-top: 18px; display: flex; align-items: center; gap: 12px; }
.mobile-region-label { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #233C65; }

@media (min-width: 1024px) {
  .nav-desktop, .nav-right { display: flex; }
  .nav-mobile-bar, .nav-mobile-panel { display: none !important; }
}

/* ============ Footer ============ */
.site-footer { background: #233C65; padding: 72px 0 36px; font-family: 'Nunito Sans', sans-serif; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; margin-bottom: 56px; }
.footer-brand { max-width: 280px; }
.footer-logo { height: 100px; width: auto; display: block; margin: 0 0 20px; }
.footer-tag { font-size: 15.5px; color: #C6D1E4; line-height: 1.6; margin: 0 0 6px; }
.footer-power { font-size: 15.5px; font-weight: 800; color: #66BEB8; margin: 0; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 36px 32px; flex: 1; min-width: min(100%, 640px); }
.footer-col-head { font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #8FA3C4; margin: 0 0 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-link { font-size: 14.5px; color: #C6D1E4; text-decoration: none; }
.footer-link:hover { color: #FFFFFF; text-decoration: underline; }
.footer-link-strong { font-weight: 700; color: #FFFFFF; }

.footer-certs { border-top: 1px solid rgba(255,255,255,0.16); padding-top: 30px; margin-bottom: 30px; }
.footer-certs-label { font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #8FA3C4; margin: 0 0 16px; }
.footer-certs-row { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.cert-btn { background: none; border: none; padding: 0; cursor: pointer; border-radius: 8px; }
.cert-btn:hover { opacity: 0.85; }
.cert-img { height: 96px; width: auto; display: block; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.16); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer-copyright { font-size: 14px; color: #8FA3C4; margin: 0; }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-legal-link { font-size: 14px; color: #C6D1E4; text-decoration: none; }
.footer-legal-link:hover { color: #FFFFFF; text-decoration: underline; }
.footer-legal-btn { background: none; border: none; padding: 0; font-family: inherit; cursor: pointer; }

/* ============ Cookie consent banner ============ */
.consent-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 2147483000; width: min(430px, calc(100vw - 32px));
  background: #FFFFFF; border: 1px solid #E7E8E5; border-radius: 22px; box-shadow: 0 24px 60px rgba(35,60,101,0.26);
  padding: 28px; font-family: 'Nunito Sans', sans-serif; box-sizing: border-box;
  max-height: calc(100vh - 48px); overflow-y: auto;
}
.consent-banner[hidden] { display: none; }
.consent-close { position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; border: none; background: none; color: #5B6474; font-size: 20px; line-height: 1; cursor: pointer; font-family: inherit; }
.consent-close:hover { color: #233C65; }
.consent-title { font-size: 19px; font-weight: 900; color: #233C65; margin: 0 0 10px; padding-right: 24px; }
.consent-desc { font-size: 15px; color: #3D4451; line-height: 1.6; margin: 0 0 20px; }
.consent-prefs[hidden], .consent-summary[hidden] { display: none; }
.consent-prefs { display: flex; flex-direction: column; gap: 2px; margin: 0 0 22px; }
.consent-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid #EDEDEA; }
.consent-row-last { border-bottom: 1px solid #EDEDEA; }
.consent-checkbox { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #456AB2; flex: none; cursor: pointer; }
.consent-checkbox:disabled { cursor: default; }
.consent-label { display: block; font-size: 15.5px; font-weight: 800; color: #233C65; margin: 0 0 4px; cursor: pointer; }
.consent-label-note { font-weight: 600; color: #5B6474; }
.consent-row-desc { font-size: 14px; color: #5B6474; line-height: 1.55; margin: 0; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.consent-actions-tight { margin: 0 0 14px; }
.btn-consent-primary, .btn-consent-secondary { flex: 1 1 150px; font-size: 16px; font-weight: 800; font-family: inherit; padding: 13px 22px; border-radius: 999px; cursor: pointer; }
.btn-consent-primary { background: #EA6D36; color: #FFFFFF; border: none; }
.btn-consent-primary:hover { background: #D45A24; }
.btn-consent-secondary { background: #FFFFFF; color: #233C65; border: 2px solid #233C65; }
.btn-consent-secondary:hover { background: #F1F4F9; }
.consent-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.consent-manage-link { font-size: 14.5px; font-weight: 700; color: #456AB2; background: none; border: none; padding: 0; font-family: inherit; cursor: pointer; text-decoration: underline; }
.consent-manage-link:hover { color: #233C65; }
.consent-policy-link { font-size: 14.5px; color: #5B6474; text-decoration: underline; }
.consent-policy-link:hover { color: #233C65; }

.cert-modal {
  position: fixed; inset: 0; z-index: 2147483000; background: rgba(35,60,101,0.7); display: flex;
  align-items: center; justify-content: center; padding: 24px; box-sizing: border-box;
}
.cert-modal[hidden] { display: none; }
.cert-modal-inner { position: relative; background: #FFFFFF; border-radius: 20px; padding: 32px; max-width: min(420px, 100%); box-sizing: border-box; text-align: center; }
.cert-modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; }
.cert-modal-img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* ============ Motion ============ */
@keyframes rogo-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { [data-marquee] { animation: none !important; } }
