/* Webbo3 Virtual Uni: the shared design.
   Landing, sign in, sign up and the course pages all load this file, so the
   tokens, nav, buttons, forms and footer are written once. Colours are the
   Webbo3 brand palette, flat fills only: no gradients anywhere. */

:root {
  --ink: #0b0b09;
  --ink-2: #1a1714;
  --ink-3: #201d18;
  --paper: #fafaf8;
  --blue: #0066ff;
  --blue-deep: #0047b3;
  --blue-light: #1f6fff;
  --amber: #f59e0b;
  --amber-deep: #c47d0a;
  --leaf: #22c55e;
  --leaf-deep: #1a9e47;
  --alert: #ff4d4d;
  --muted: #b0aa9a;
  --dim: #9a9590;
  --line: rgba(255,255,255,0.14);
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'Courier New', monospace;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  --zigzag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60'%3E%3Cpath d='M0 45 L30 15 L60 45 L90 15 L120 45' fill='none' stroke='%230066ff' stroke-opacity='0.07' stroke-width='10'/%3E%3C/svg%3E");
  --zigzag-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60'%3E%3Cpath d='M0 45 L30 15 L60 45 L90 15 L120 45' fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='10'/%3E%3C/svg%3E");
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Ccircle cx='1' cy='1' r='0.8' fill='%23000000' fill-opacity='0.45'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
[hidden], .hidden { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.textured { background-color: var(--ink); background-image: var(--dots), var(--zigzag); background-size: 6px 6px, 120px 60px; }
.blue-panel { background-color: var(--blue); background-image: var(--zigzag-light); background-size: 120px 60px; }

/* type */
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.005em; margin: 0; overflow-wrap: break-word; }
.accent, .gold { color: var(--blue-light); }
.eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin: 0 0 18px; }
.h2 { font-size: clamp(2.4rem, 6.4vw, 5.4rem); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--paper); margin: 0 0 16px; }
.body-dim { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin: 0; }

/* kente: navy, blue, light blue, green, near-black blocks */
.kente { height: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='6'%3E%3Crect width='8' height='6' fill='%230047b3'/%3E%3Crect x='8' width='8' height='6' fill='%230066ff'/%3E%3Crect x='16' width='8' height='6' fill='%231f6fff'/%3E%3Crect x='24' width='8' height='6' fill='%2322c55e'/%3E%3Crect x='32' width='8' height='6' fill='%230b0b09'/%3E%3C/svg%3E") repeat-x; background-size: 40px 6px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; padding: 13px 20px; border: 2px solid var(--blue);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  cursor: pointer; background: transparent; color: var(--paper); line-height: 1; white-space: nowrap;
}
.btn-solid { background: var(--blue); color: var(--paper); box-shadow: 4px 4px 0 var(--blue-deep); }
.btn-solid:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--blue-deep); }
.btn:not(.btn-solid):hover { background: var(--blue); color: var(--paper); }
.btn[disabled], .btn.off { opacity: .55; pointer-events: none; }
.btn-block { width: 100%; }
.btn .arr { font-family: var(--sans); font-size: 0.95em; }
.link-line { font-family: var(--display); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--blue-light); text-decoration: none; border-bottom: 2px solid var(--blue-light); padding-bottom: 6px; display: inline-flex; gap: 10px; }
.link-line:hover { color: var(--paper); border-color: var(--paper); }

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11,11,9,0.96); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; }
.brand-word { font-family: var(--display); font-size: 1.45rem; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.brand-tag { font-family: var(--mono); font-size: 0.62rem; letter-spacing: .16em; text-transform: uppercase; background: var(--amber); color: var(--ink); padding: 4px 7px 3px; transform: rotate(-3deg); font-weight: 500; white-space: nowrap; }
.nav-links { display: flex; gap: clamp(14px, 1.6vw, 24px); list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--muted); white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--blue-light); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-actions .btn { padding: 10px 14px; font-size: .88rem; }
.menu-btn { display: none; background: none; border: 2px solid var(--blue); color: var(--paper); width: 44px; height: 40px; font-family: var(--display); font-size: 1.1rem; cursor: pointer; line-height: 1; }
.mobile-nav { display: none; }
/* A third button needs the extra room; narrower screens keep it in the menu. */
@media (max-width: 1320px) { .nav-actions .nav-free { display: none; } }
/* The full link row needs roughly 1150px; below that it goes behind the menu
   button rather than wrapping onto two lines. */
@media (max-width: 1160px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .menu-btn { display: inline-block; }
  .mobile-nav.open { display: block; position: fixed; inset: var(--nav-h) 0 0 0; background: var(--ink); z-index: 49; overflow-y: auto; padding: 24px var(--gutter) 40px; border-top: 1px solid var(--line); }
  .mobile-nav a { display: block; font-family: var(--display); font-size: clamp(1.6rem, 6vw, 2rem); text-transform: uppercase; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .mobile-nav a:hover { color: var(--blue-light); }
  .mobile-nav .btn { margin-top: 22px; font-size: 1.1rem; display: flex; border-bottom: 2px solid var(--blue); }
}
@media (max-width: 440px) {
  .brand-tag { display: none; }
  .nav-actions .btn-solid { padding: 9px 10px; font-size: .8rem; }
}
@media (max-width: 340px) {
  .brand-word { font-size: 1.2rem; }
  .nav-actions .btn-solid .arr { display: none; }
}

/* ---------- FOOTER ---------- */
.footer { padding: 64px 0 28px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot-brand p { color: var(--muted); font-size: .9rem; margin: 16px 0 0; max-width: 320px; }
.foot-brand .powered { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-top: 10px; }
.foot-col h4 { font-family: var(--mono); font-weight: 500; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; }
.foot-col a { display: block; text-decoration: none; color: var(--muted); font-size: .92rem; padding: 4px 0; }
.foot-col a:hover { color: var(--paper); }
.foot-big { font-family: var(--display); text-transform: uppercase; font-size: clamp(3rem, 15vw, 13rem); line-height: .82; color: var(--ink-3); margin: 40px 0 0; white-space: nowrap; overflow: hidden; user-select: none; }
.foot-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; color: var(--dim); }
.foot-bot a { color: var(--dim); text-decoration: none; margin-left: 16px; }
.foot-bot a:first-child { margin-left: 0; }
.foot-bot a:hover { color: var(--blue-light); }
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 380px) { .foot-top { grid-template-columns: 1fr; } }

/* ---------- FORMS ---------- */
.vu-card { background: var(--ink-2); border: 2px solid var(--blue); box-shadow: 10px 10px 0 var(--blue-deep); padding: clamp(20px, 4vw, 36px); color: var(--paper); }
.vu-field { margin-bottom: 16px; }
.vu-field label, .vu-label { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.vu-input, .vu-field input:not([type=checkbox]):not([type=radio]), .vu-field select, .vu-field textarea {
  width: 100%; background: var(--ink); border: 1.5px solid #4a4840; color: var(--paper);
  padding: 13px 14px; font: inherit; font-size: 1rem; border-radius: 0;
}
.vu-input:focus, .vu-field input:focus, .vu-field select:focus, .vu-field textarea:focus { outline: none; border-color: var(--blue-light); }
.vu-input::placeholder, .vu-field input::placeholder { color: #6b6660; }
.vu-check { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--muted); cursor: pointer; }
.vu-check input { accent-color: var(--blue); width: 17px; height: 17px; margin: 2px 0 0; flex-shrink: 0; }
.vu-check a { color: var(--blue-light); }
.vu-or { display: flex; align-items: center; gap: 12px; margin: 22px 0; font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.vu-or::before, .vu-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.vu-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px 16px; background: var(--paper); color: var(--ink); border: 2px solid var(--paper); font-family: var(--display); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.vu-google:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--blue); }
.vu-google img { width: 20px; height: 20px; }
.flash-message { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 18px; border-left: 4px solid; font-size: .92rem; }
.flash-message.error, .flash-message.danger { background: rgba(255,77,77,.12); border-color: var(--alert); color: #ffb3b3; }
.flash-message.success { background: rgba(34,197,94,.12); border-color: var(--leaf); color: #9ff0bd; }
.flash-message.info, .flash-message.warning, .flash-message.message { background: rgba(245,158,11,.12); border-color: var(--amber); color: #fcd88a; }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
