/* AI University home page (October 2026).
   One memorable element: the band of rolling hills in the five section colours.
   Everything else is quiet: Lexend, paper background, AIU magenta and plum, the AIU logo. */
html:is(#aiu, *) body.aiuHome {
  --home-max: 1180px;
  --teal: #b8208f; --teal-soft: #fae6f3; --teal-deep: #76145e;
  --rose: #d4523f; --violet: #6a4fc8; --green: #3d6bc4; --gold: #c406bc;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}
.aiuHome .home-skip { position: absolute; left: -999px; top: 8px; z-index: 10; padding: 8px 14px; border-radius: 10px; background: var(--pk-900); color: #fff; }
.aiuHome .home-skip:focus { left: 12px; }
.aiuHome :is(a, button, input):focus-visible { outline: 3px solid var(--mg-500, #c406bc); outline-offset: 2px; }

/* Top bar */
.aiuHome .home-top { max-width: var(--home-max); margin: 0 auto; padding: 18px clamp(16px, 4vw, 32px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.aiuHome .home-brand { display: flex; align-items: center; gap: 12px; color: var(--pk-900); text-decoration: none; }
.aiuHome .home-brand .brandLogo { height: 40px !important; }
.aiuHome .home-brand-name { display: grid; line-height: 1.2; }
.aiuHome .home-brand-name strong { font-size: 1.1rem; font-weight: 600; }
.aiuHome .home-brand-name span { color: var(--muted); font-size: .82rem; }
.aiuHome .home-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; }
.aiuHome .home-nav a { color: var(--pk-900); text-decoration: none; font-size: .92rem; font-weight: 500; }
.aiuHome .home-nav a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.aiuHome .home-nav .home-nav-signin { padding: 8px 18px; border-radius: 999px; background: var(--pk-900); color: #fff; font-weight: 600; }
.aiuHome .home-nav .home-nav-signin:hover { background: var(--teal-deep); color: #fff; text-decoration: none; }

/* Hero */
.aiuHome .home-hero { max-width: var(--home-max); margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 32px) 8px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 400px); gap: clamp(28px, 5vw, 72px); align-items: start; }
.aiuHome .home-hero h1 { margin: 0 !important; max-width: 15ch; font-size: clamp(2.3rem, 4.6vw, 3.6rem) !important; line-height: 1.06 !important; letter-spacing: -0.03em !important; font-weight: 600 !important; color: var(--pk-900) !important; }
.aiuHome .home-lede { margin: 18px 0 0; max-width: 34rem; font-size: 1.15rem; color: #533b4d; }

/* The tutor conversation */
.aiuHome .home-chat { margin: 32px 0 0; max-width: 34rem; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid #e3ebe8; box-shadow: 0 24px 50px -30px rgba(90, 15, 71, .35); display: grid; gap: 12px; }
.aiuHome .home-chat-head { display: flex; align-items: center; gap: 12px; }
.aiuHome .home-avatar { width: 44px; height: 44px; flex: none; }
.aiuHome .home-chat-head div { display: grid; line-height: 1.25; }
.aiuHome .home-chat-head strong { color: var(--pk-900); font-weight: 600; }
.aiuHome .home-chat-head div span { color: var(--muted); font-size: .85rem; }
.aiuHome .home-ai-tag { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: #eeeafb; color: #3b2a80; font-size: .78rem; font-weight: 600; }
.aiuHome .home-bubble { margin: 0; padding: 11px 15px; border-radius: 16px; max-width: 88%; font-size: .97rem; line-height: 1.5; }
html:is(#aiu, *) body.aiuHome .home-bubble-learner { justify-self: end; background: var(--pk-900); color: #fff !important; border-bottom-right-radius: 4px; }
html:is(#aiu, *) body.aiuHome .home-bubble-tutor { color: #24161f !important; }
.aiuHome .home-bubble-tutor { background: var(--teal-soft); color: #24161f; border-bottom-left-radius: 4px; }
.aiuHome .home-chat-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.aiuHome .home-chat-actions span { padding: 5px 12px; border-radius: 999px; border: 1px solid #e3cfde; color: var(--teal-deep); font-size: .85rem; font-weight: 500; background: #fff; }

/* Sign-in card in the hero */
.aiuHome .home-signin { width: 100%; box-sizing: border-box; scroll-margin-top: 24px; }
.aiuHome .home-signin:focus { outline: none; }
html:is(#aiu, *) body.aiuHome .signin-card h2 { font-size: 1.6rem !important; }

/* The hills */
.aiuHome .home-hills { margin-top: clamp(-40px, -3vw, -10px); line-height: 0; }
.aiuHome .home-hills svg { display: block; width: 100%; height: clamp(90px, 14vw, 200px); }

/* Sections below the hills */
.aiuHome .home-section { max-width: var(--home-max); margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 32px) 0; }
.aiuHome .home-section h2 { margin: 0 0 8px !important; font-size: clamp(1.6rem, 2.6vw, 2.1rem) !important; letter-spacing: -0.02em !important; font-weight: 600 !important; color: var(--pk-900) !important; }
.aiuHome .home-section h3 { margin: 0 0 6px !important; font-size: 1.12rem !important; font-weight: 600 !important; color: var(--pk-900) !important; }
.aiuHome .home-section p { margin: 0; color: #533b4d; }
.aiuHome .home-how { background: #fff; max-width: none; padding-bottom: clamp(40px, 6vw, 64px); padding-left: max(clamp(16px, 4vw, 32px), calc((100% - var(--home-max)) / 2 + clamp(16px, 4vw, 32px))); padding-right: max(clamp(16px, 4vw, 32px), calc((100% - var(--home-max)) / 2 + clamp(16px, 4vw, 32px))); }
.aiuHome .home-steps { list-style: none; counter-reset: step; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
.aiuHome .home-steps li { counter-increment: step; display: grid; gap: 4px; align-content: start; }
.aiuHome .home-steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-deep); font-weight: 600; font-size: 1.05rem; }
.aiuHome .home-steps li:nth-child(2)::before { background: #fdece8; color: #8a2a1c; }
.aiuHome .home-steps li:nth-child(3)::before { background: #fdf1d6; color: #6b4400; }

/* Programmes */
.aiuHome .home-section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; }
.aiuHome .home-catalogue { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.aiuHome .home-course { display: grid; grid-template-rows: auto 1fr; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #e3ebe8; }
.aiuHome .home-course-cover { line-height: 0; }
.aiuHome .home-course-cover svg { width: 100%; height: 120px; display: block; }
.aiuHome .home-course-body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.aiuHome .home-course-body p { font-size: .94rem; line-height: 1.5; }
.aiuHome .home-course-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.aiuHome .home-course-facts li { padding: 3px 10px; border-radius: 999px; background: #f3f1ea; color: #604a5a; font-size: .8rem; font-weight: 500; }
.aiuHome .home-course-facts .home-course-fee { margin-left: auto; background: none; padding-right: 0; color: var(--pk-900); font-weight: 600; font-size: .9rem; }
.aiuHome .home-empty { padding: 20px; border-radius: 16px; background: #fff; border: 1px dashed #dccfd9; }

/* Trust */
.aiuHome .home-trust-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
.aiuHome .home-trust-list li { padding-top: 16px; border-top: 3px solid var(--teal); }
.aiuHome .home-trust-list li:nth-child(2) { border-top-color: var(--violet); }
.aiuHome .home-trust-list li:nth-child(3) { border-top-color: var(--green); }

/* Certificate */
.aiuHome .home-cert { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-bottom: clamp(48px, 7vw, 88px); }
.aiuHome .home-cert-art { display: grid; place-items: center; padding: 26px; border-radius: 24px; background: #fdf1d6; }
.aiuHome .home-cert-paper { position: relative; width: min(100%, 360px); aspect-ratio: 1.414 / 1; box-sizing: border-box; padding: 26px 28px; display: grid; align-content: center; justify-items: center; gap: 4px; text-align: center; background: #fffdf8; border: 1px solid #ead9b0; outline: 6px solid #fffdf8; box-shadow: 0 0 0 7px #e09b00, 0 20px 40px -24px rgba(107, 68, 0, .5); transform: rotate(-2deg); color: #4a3a1c; font-size: .82rem; }
.aiuHome .home-cert-paper strong { color: var(--pk-900); font-size: 1rem; font-weight: 600; }
.aiuHome .home-cert-name { margin: 6px 0 2px; color: var(--pk-900); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.aiuHome .home-cert-code { margin-top: 8px; padding: 2px 8px; border-radius: 6px; background: #f6eedb; font-size: .72rem; letter-spacing: .04em; }
.aiuHome .home-cert-seal { position: absolute; right: 18px; bottom: 16px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--pk-900); color: #fff; font-size: .62rem; font-weight: 600; box-shadow: 0 0 0 3px #e09b00; }
.aiuHome .home-cert-text { display: grid; gap: 14px; justify-items: start; }
.aiuHome .home-cert-text p { max-width: 34rem; }

/* Footer */
.aiuHome .home-foot { border-top: 1px solid #e3ebe8; max-width: var(--home-max); margin: 0 auto; padding: 22px clamp(16px, 4vw, 32px) 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--muted); font-size: .88rem; }
.aiuHome .home-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.aiuHome .home-foot a { color: var(--pk-700, #951a78); }

/* Phones and tablets */
@media (max-width: 900px) {
  .aiuHome .home-hero { grid-template-columns: 1fr; }
  .aiuHome .home-hero h1 { max-width: 18ch; }
  .aiuHome .home-steps, .aiuHome .home-trust-list { grid-template-columns: 1fr; }
  .aiuHome .home-cert { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .aiuHome .home-nav a:not(.home-nav-signin) { display: none; }
  .aiuHome .home-chat { padding: 14px; }
  .aiuHome .home-bubble { max-width: 94%; }
}
@media (prefers-reduced-motion: reduce) {
  .aiuHome * { scroll-behavior: auto !important; }
}
