/* AIFT Candidate Registration | Ubiquitous Preferred Services Inc. */
:root {
  --navy: #000D44;
  --navy-card: #081030;
  --navy-border: #303C54;
  --cobalt: #2460E4;
  --cobalt-signal: #3D5BD9;
  --periwinkle: #7878E6;
  --sky: #67A6F2;
  --soft: #C9DDF5;
  --steel: #8796A5;
  --ink: #1B2440;
  --body: #4A5670;
  --white: #FFFFFF;
  --page: #F5F8FD;
  --error: #C62D3A;
  --radius: 12px;
  --font: 'Raleway', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt); }
a:hover { color: var(--cobalt-signal); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--cobalt); color: var(--white); padding: 10px 16px;
  border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 13, 68, 0.96);
  border-bottom: 1px solid var(--navy-border);
  backdrop-filter: saturate(140%) blur(8px);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a.link {
  display: none; color: var(--soft); text-decoration: none; font-weight: 500;
  font-size: 15px; padding: 8px 12px; border-radius: 8px;
}
.nav-links a.link:hover { color: var(--white); background: rgba(255,255,255,0.06); }
@media (min-width: 860px) { .nav-links a.link { display: inline-block; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 11px 20px; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--cobalt); color: var(--white); text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--cobalt-signal); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-block { width: 100%; padding: 14px 20px; font-size: 16px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(36, 96, 228, 0.35), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(120, 120, 230, 0.18), transparent 60%),
    var(--navy);
  color: var(--white);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding: 48px 0 56px;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; padding: 72px 0 88px; align-items: start; }
}
.eyebrow {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sky); margin: 0 0 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); flex-shrink: 0; transform: translateY(-1px); }
.nowrap { white-space: nowrap; }   /* keeps "APMG-Accredited" from breaking at the hyphen */
.hero h1 {
  font-size: clamp(36px, 6vw, 60px); line-height: 1.08; font-weight: 800;
  margin: 0 0 16px; letter-spacing: -0.01em;
}
.tagline { font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; color: var(--soft); margin: 0 0 20px; }
.lede { font-size: 17px; color: #D5E2F6; max-width: 640px; margin: 0 0 32px; }

.facts {
  list-style: none; margin: 0 0 36px; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  max-width: 640px;
}
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts li {
  background: var(--navy-card); border: 1px solid var(--navy-border);
  border-radius: 10px; padding: 14px 14px 12px;
}
.facts strong { display: block; font-size: 22px; font-weight: 800; color: var(--white); line-height: 1.1; }
.facts span { display: block; font-size: 13px; color: var(--steel); margin-top: 4px; font-weight: 500; }

/* Video facade: loads YouTube only on click */
.video {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--navy-border);
  background:
    radial-gradient(500px 260px at 70% 20%, rgba(103,166,242,0.35), transparent 60%),
    linear-gradient(135deg, #0A1A5C 0%, var(--navy-card) 100%);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: transparent; border: 0; color: var(--white); cursor: pointer; font-family: var(--font);
}
.video-play .ring {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--cobalt); display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(36, 96, 228, 0.25);
  transition: transform .15s ease, background-color .15s ease;
}
.video-play:hover .ring { transform: scale(1.06); background: var(--cobalt-signal); }
.video-play .label { font-weight: 700; font-size: 16px; }
.video-play .sub { font-size: 12px; color: var(--soft); }
.video.mobile { margin-bottom: 40px; }
.video.desktop { display: none; }
@media (min-width: 1024px) { .video.desktop { display: block; } .video.mobile { display: none; } }

/* Form card */
.form-card {
  background: var(--white); color: var(--ink);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 5, 30, 0.6), 0 0 0 1px rgba(255,255,255,0.06);
}
@media (min-width: 1024px) { .form-card { position: sticky; top: 96px; } }
.form-head { background: var(--navy-card); color: var(--white); padding: 22px 24px; border-bottom: 3px solid var(--cobalt); }
.form-head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.form-head p { margin: 6px 0 0; font-size: 14px; color: var(--soft); }
.form-body { padding: 22px 24px 26px; }
@media (min-width: 640px) { .form-head, .form-body { padding-left: 28px; padding-right: 28px; } }

.row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 480px) { .row.two { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 14px; }
.row .field { margin-bottom: 0; }
.row { margin-bottom: 14px; }
label, legend { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--cobalt); }
.opt { font-weight: 500; color: var(--steel); }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; font-family: var(--font); font-size: 16px; color: var(--ink);
  padding: 10px 12px; border: 1px solid #C5CFDD; border-radius: 8px; background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(36, 96, 228, 0.18); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.err { display: none; color: var(--error); font-size: 12.5px; font-weight: 600; margin-top: 5px; }
.field.invalid .err { display: block; }

fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.choices { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: flex-start; gap: 10px; margin: 0;
  border: 1px solid #C5CFDD; border-radius: 8px; padding: 10px 12px;
  font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink);
}
.choice small { display: block; font-weight: 500; color: var(--body); font-size: 12.5px; }
.choice input { margin-top: 3px; accent-color: var(--cobalt); }
.choice:has(input:checked) { border-color: var(--cobalt); background: #EEF3FD; }
fieldset.invalid .choice { border-color: var(--error); }
fieldset.invalid .err { display: block; }
.is-hidden { display: none !important; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 500; color: var(--body); }
.consent input { margin-top: 3px; accent-color: var(--cobalt); flex-shrink: 0; }

.turnstile-box { max-width: 100%; }

.trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  display: none; margin-bottom: 14px; padding: 12px 14px; border-radius: 8px;
  background: #FCEBEC; color: #8E1C26; font-size: 14px; font-weight: 600;
}
.form-alert.show { display: block; }
.secure-note {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 14px 0 0; font-size: 12px; color: var(--steel); line-height: 1.5;
}
.secure-note svg { flex-shrink: 0; margin-top: 1px; }

/* Content sections */
.section { padding: 64px 0; background: var(--white); }
.section.alt { background: var(--page); }
@media (min-width: 1024px) { .section { padding: 88px 0; } }
.section-head { max-width: 720px; margin-bottom: 36px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cobalt); margin: 0 0 10px; }
.section h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; font-weight: 800; color: var(--navy); margin: 0 0 14px; }
.section-head p { color: var(--body); font-size: 17px; margin: 0; }

.modules { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .modules { grid-template-columns: repeat(4, 1fr); } }
.module {
  border: 1px solid #DCE4F0; border-radius: var(--radius); padding: 22px;
  background: var(--white); position: relative;
}
.module::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: var(--cobalt); }
.module:nth-child(2)::before { background: var(--periwinkle); }
.module:nth-child(3)::before { background: var(--sky); }
.module:nth-child(4)::before { background: var(--cobalt-signal); }
.module .num { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--steel); text-transform: uppercase; }
.module h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin: 8px 0 10px; line-height: 1.25; }
.module p { color: var(--body); font-size: 15px; margin: 0; }

.split { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.who { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.who li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.who .tick { width: 26px; height: 26px; border-radius: 50%; background: #E3ECFC; color: var(--cobalt); display: grid; place-items: center; flex-shrink: 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative; padding: 16px 16px 16px 64px;
  background: var(--white); border: 1px solid #DCE4F0; border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.steps strong { display: block; color: var(--navy); font-size: 16px; }
.steps span { color: var(--body); font-size: 14.5px; }

.creds { background: var(--navy); color: var(--white); padding: 48px 0; }
.creds-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .creds-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .creds-grid { grid-template-columns: repeat(3, 1fr); } }
.cred { border: 1px solid var(--navy-border); background: var(--navy-card); border-radius: var(--radius); padding: 20px; }
.cred strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.cred span { font-size: 14px; color: var(--soft); }
/* Procurement: compact one-line facts, separated by dots on wide screens */
.procurement { padding: 40px 0; background: var(--page); border-top: 1px solid #E3E9F2; }
.procurement h2 { font-size: 22px; margin: 0 0 12px; }
.procurement-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.procurement-list li + li::before { content: "\00B7"; margin: 0 12px; color: var(--steel); font-weight: 700; }
.procurement-list abbr { text-decoration: none; }
.procurement-list a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) { .procurement-list { flex-direction: column; gap: 8px; } .procurement-list li + li::before { content: none; } }
.creds-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.creds-cta p { margin: 0; font-size: 18px; font-weight: 600; }

/* Footer */
.footer { background: var(--white); border-top: 1px solid #DCE4F0; padding: 36px 0 28px; font-size: 14px; color: var(--body); }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer .brand { color: var(--navy); }
.footer .brand:hover { color: var(--navy); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--body); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--cobalt); }
.footer-bottom { margin-top: 24px; padding-top: 20px; border-top: 1px solid #EDF1F7; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13px; color: var(--steel); }
.hashtag { color: var(--cobalt); font-weight: 700; word-break: break-word; }

/* Thank-you page */
.ty { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 48px 0; }
.ty-card { max-width: 620px; margin: 0 auto; background: var(--white); border-radius: 14px; padding: 36px 28px; box-shadow: 0 30px 60px -24px rgba(0, 5, 30, 0.55); text-align: center; }
.ty-icon { width: 64px; height: 64px; border-radius: 50%; background: #E3ECFC; color: var(--cobalt); display: grid; place-items: center; margin: 0 auto 18px; }
.ty-card h1 { font-size: 30px; font-weight: 800; color: var(--navy); margin: 0 0 12px; }
.ty-card p { color: var(--body); margin: 0 0 14px; }
.ty-card .steps { text-align: left; margin: 22px 0 26px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---- v2 additions ---- */
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); }
.dates-line { display: flex; gap: 10px; align-items: flex-start; max-width: 640px; margin: -12px 0 32px; font-size: 14.5px; color: var(--soft); }
.dates-line svg { flex-shrink: 0; margin-top: 3px; }
.price-line { display: flex; gap: 10px; align-items: flex-start; max-width: 640px; margin: -12px 0 14px; font-size: 14.5px; color: var(--soft); }
.price-line svg { flex-shrink: 0; margin-top: 3px; }
.price-line strong { color: var(--white); }
.price-line + .dates-line { margin-top: 0; }
.dates-line strong { color: var(--white); }
.choices.two { grid-template-columns: 1fr 1fr; }
.after-note { margin: 10px 0 0; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.after-note.quote-note { margin-top: 4px; font-weight: 500; color: var(--body); }
.trainer-link { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #EDF1F7; font-size: 13px; color: var(--body); text-align: center; }
.trainer-link a { font-weight: 700; }
.form-proof { display: flex; gap: 12px; align-items: center; padding: 14px 24px; background: #F1F5FC; border-top: 1px solid #DCE4F0; font-size: 13px; }
@media (min-width: 640px) { .form-proof { padding-left: 28px; padding-right: 28px; } }
.form-proof strong { display: block; color: var(--navy); font-size: 13.5px; }
.form-proof a { font-weight: 700; font-size: 12.5px; }
.proof-badge { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--cobalt); color: var(--cobalt); display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: .04em; flex-shrink: 0; background: var(--white); }

.section.definition { padding: 48px 0; border-bottom: 1px solid #DCE4F0; }
.def-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .def-grid { grid-template-columns: 260px 1fr; gap: 48px; align-items: start; } }
.def-grid h2 { margin: 0; font-size: clamp(24px, 3vw, 30px); }
.def-text { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink); font-weight: 500; border-left: 4px solid var(--cobalt); padding-left: 20px; }

.founder { display: grid; gap: 28px; align-items: center; max-width: 980px; }
@media (min-width: 760px) { .founder { grid-template-columns: 200px 1fr; gap: 48px; } }
.founder-photo { width: 168px; height: 168px; border-radius: 50%; background: linear-gradient(135deg, var(--navy) 0%, var(--cobalt) 100%); color: var(--white); display: grid; place-items: center; font-size: 52px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 0 0 6px var(--white), 0 0 0 8px var(--soft); }
.founder h2 { margin: 0 0 4px; }
.founder-role { color: var(--cobalt); font-weight: 700; margin: 0 0 14px; }
.founder p { color: var(--body); font-size: 16.5px; }
.founder-tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.founder-tags li { background: var(--white); border: 1px solid #DCE4F0; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--navy); }

.faq { max-width: 860px; display: grid; gap: 10px; }
.faq details { border: 1px solid #DCE4F0; border-radius: 10px; background: var(--white); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 600; color: var(--cobalt); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--body); }

.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--navy); border-top: 1px solid var(--navy-border); color: var(--white); font-size: 14px; font-weight: 600; transform: translateY(110%); transition: transform .2s ease; }
.mobile-cta.show { transform: translateY(0); }
.mobile-cta .btn { padding: 9px 16px; font-size: 14px; }
@media (min-width: 1024px) { .mobile-cta { display: none; } }
.help { margin: 5px 0 0; font-size: 12.5px; color: var(--steel); font-weight: 500; line-height: 1.45; }
.optional-check small { display: block; margin-top: 2px; font-size: 12px; color: var(--steel); }
.form-group-title { margin: 4px 0 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt); border-bottom: 1px solid #EDF1F7; padding-bottom: 6px; }
.form-group-title .opt { text-transform: none; letter-spacing: 0; font-size: 12px; }
.form-group-title:not(:first-of-type) { margin-top: 20px; }
.trainer-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) { .trainer-grid { grid-template-columns: repeat(3, 1fr); } }
.trainer-card { background: var(--white); border: 1px solid #DCE4F0; border-radius: var(--radius); padding: 24px; }
.trainer-icon { width: 44px; height: 44px; border-radius: 10px; background: #E3ECFC; color: var(--cobalt); display: grid; place-items: center; margin-bottom: 14px; }
.trainer-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--navy); }
.trainer-card p { margin: 0; color: var(--body); font-size: 15px; }
.trainer-join { margin: 24px 0 0; font-size: 15px; color: var(--body); }
.trainer-join a { font-weight: 700; }
/* Video with real thumbnail and chapter jumps */
.video-block { margin: 0; }
.video-section { padding-top: 0; }
.video-section .video-block { max-width: 960px; margin: 0 auto; }
.video-block .video { display: block; }
.video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play { background: linear-gradient(180deg, rgba(0,13,68,0.15) 0%, rgba(0,13,68,0.75) 100%); }
.chapters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.chapters > span { color: var(--steel); margin-right: 2px; }
.hero .chapters > span { color: var(--soft); }
.chapters button { font-family: var(--font); font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 999px; padding: 6px 12px; border: 1px solid #C5CFDD; background: var(--white); color: var(--navy); }
.hero .chapters button { background: var(--navy-card); border-color: var(--navy-border); color: var(--white); }
.chapters button:hover { border-color: var(--cobalt); }
.chapters em { font-style: normal; color: var(--sky); margin-left: 4px; }
.chapters button:not(.hero *) em { color: var(--cobalt); }

/* ---- v2.4 imagery ---- */
.hero { background:
  url("img/hero-network.svg") center / cover no-repeat,
  radial-gradient(900px 500px at 85% -10%, rgba(36, 96, 228, 0.35), transparent 60%),
  radial-gradient(700px 420px at -10% 110%, rgba(120, 120, 230, 0.18), transparent 60%),
  var(--navy); }

.human { background: linear-gradient(180deg, var(--white) 0%, #F1F5FC 100%); }
.human-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .human-grid { grid-template-columns: 5fr 6fr; gap: 64px; } }
.human-photo { margin: 0; position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); box-shadow: 0 30px 60px -30px rgba(0, 13, 68, 0.55); }
.human-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.human-photo::after { content: ""; position: absolute; inset: 0; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); pointer-events: none; }
.human h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 800; color: var(--navy); margin: 0 0 14px; }
.human-lede { font-size: 17.5px; color: var(--body); margin: 0 0 24px; }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillars li { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid #DCE4F0; border-radius: 12px; padding: 16px; }
.pillar-num { width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.pillars strong { display: block; color: var(--navy); font-size: 15px; line-height: 1.3; }
.pillars span { display: block; font-size: 13.5px; color: var(--body); margin-top: 3px; }

.frameworks { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.frameworks::before { content: ""; position: absolute; inset: 0; background: url("img/hero-network.svg") center / cover no-repeat; opacity: .55; pointer-events: none; }
.frameworks .wrap { position: relative; }
.frameworks h2 { color: var(--white); }
.frameworks .kicker { color: var(--sky); }
.frameworks .section-head p { color: var(--soft); }
.fw-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.fw-tabs button { font-family: var(--font); font-weight: 700; font-size: 14px; cursor: pointer; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--navy-border); background: var(--navy-card); color: var(--soft); }
.fw-tabs button:hover { color: var(--white); border-color: var(--sky); }
.fw-tabs button[aria-selected="true"] { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }
.fw-panel { display: grid; gap: 32px; align-items: center; background: var(--white); color: var(--ink); border-radius: 18px; padding: 28px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }
@media (min-width: 900px) { .fw-panel { grid-template-columns: 1fr 1fr; padding: 40px; gap: 48px; } }
.fw-panel[hidden] { display: none; }
.fw-visual { display: flex; justify-content: center; }
.fw-svg { width: 100%; max-width: 440px; height: auto; }
.fw-mod { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); background: #E3ECFC; border-radius: 999px; padding: 5px 12px; }
.fw-copy h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; color: var(--navy); margin: 14px 0 10px; line-height: 1.2; }
.fw-copy p { color: var(--body); font-size: 16px; margin: 0 0 16px; }
.fw-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fw-points li { position: relative; padding-left: 22px; color: var(--ink); font-size: 15px; }
.fw-points li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 3px; background: var(--cobalt); }
.fw-points strong { color: var(--navy); }

.trainer-photo { margin: 0 0 24px; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 7; background: var(--navy); }
.trainer-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.human-photo picture, .trainer-photo picture { display: block; width: 100%; height: 100%; }
.trainer-photo img { object-position: center 40%; }
.pillars .pillar-num { color: var(--white); margin-top: 0; }
/* Logo and badge */
.brand picture { display: block; }
.brand .logo { display: block; height: 56px; width: auto; }
@media (max-width: 560px) { .nav .brand .logo { height: 44px; width: 44px; } }
.footer .brand .logo { height: 52px; }
.aift-badge { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.cred-badge { display: flex; gap: 14px; align-items: center; }
.cred-badge img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }

.pillars .pillar-icon { width: 40px; height: 40px; margin: 0; border-radius: 10px; background: var(--navy); color: var(--white); display: grid; place-items: center; flex-shrink: 0; }
.pillars .pillar-icon svg { display: block; }
.pillars li:nth-child(2) .pillar-icon { background: var(--cobalt); }
.pillars li:nth-child(3) .pillar-icon { background: var(--periwinkle); }
.pillars li:nth-child(4) .pillar-icon { background: var(--cobalt-signal); }

/* ---- Responsive hardening (v2.13) ---- */
/* Safari before 18 needs the prefixed backdrop filter */
.nav { -webkit-backdrop-filter: saturate(140%) blur(8px); }
/* Smallest phones: lighter headline */
@media (max-width: 380px) { .hero h1 { font-size: 29px; } .human h2, .section h2 { font-size: 26px; } }
/* Readable minimum for small caps labels */
.form-group-title, .fw-mod { font-size: 12.5px; }
/* Touch screens: standalone links get a 44px tap area (WCAG 2.5.8 and Apple HIG) */
@media (pointer: coarse) {
  .form-proof a, .trainer-link a, .trainer-join a, .footer-links a, .procurement-list a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .footer-links { gap: 4px 20px; }
  .chapters button { min-height: 40px; }
  .fw-tabs button { min-height: 44px; }
}
/* Respect iPhone notch and home bar */
.nav .wrap, .footer .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

/* ---- Cookie banner (matches ai.ubiquitouspreferred.com, UPSI palette) ---- */
#cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: linear-gradient(135deg, var(--navy) 0%, var(--cobalt) 100%);
  color: var(--white); padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  border-top: 3px solid var(--sky); box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%); transition: transform .4s ease-in-out;
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner.hide { display: none; }
.cookie-banner-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-banner-text { flex: 1 1 0; min-width: 280px; }
.cookie-banner-text p { margin: 0; font-size: 14px; line-height: 1.6; }
.cookie-banner-text a { color: var(--soft); text-decoration: underline; font-weight: 700; }
.cookie-banner-text a:hover { color: var(--white); }
.cookie-banner-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-btn { font-family: var(--font); padding: 11px 26px; min-height: 44px; border: 0; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background-color .2s ease, transform .2s ease; }
.cookie-btn-accept { background: var(--white); color: var(--navy); }
.cookie-btn-accept:hover { background: var(--soft); transform: translateY(-1px); }
.cookie-btn-decline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.cookie-btn-decline:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }
@media (max-width: 768px) {
  #cookie-banner { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .cookie-banner-container { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-banner-text { min-width: 0; }
  .cookie-btn { flex: 1 1 0; }
}
/* The mobile sticky CTA steps aside while the cookie banner is open */
body.cookie-open .mobile-cta { display: none; }
.footer-links .linklike { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--body); cursor: pointer; }
.footer-links .linklike:hover { color: var(--cobalt); }
@media (prefers-reduced-motion: reduce) { #cookie-banner { transition: none; } }

.cred-badge picture, .form-proof picture { display: block; flex-shrink: 0; }
.cred-badge img { width: 84px; height: 84px; }
