/* Webbo3 Virtual Uni, the light design (2026-10-23): the landing page,
   /courses, sign in and sign up. Duolingo's feel in Webbo3's colours: a white
   page, Kemi as the mascot, big short headlines, chunky rounded buttons with
   a lip that presses down, 2px bordered cards. Flat fills, no gradients.
   Pages add their own sections on top. The course pages and the blog still
   use vu.css. Every rule that hides something before it animates is gated
   on html.js, so without JavaScript the page stands still and complete. */

:root {
  --blue: #0066ff; --blue-d: #0047b3; --blue-l: #1f6fff; --sky: #e8f1ff; --sky-2: #cfe2ff;
  --leaf: #22c55e; --leaf-d: #1a9e47; --mint: #e7f9ee;
  --amber: #f59e0b; --amber-d: #c47d0a; --sun: #fff4dc;
  --rose: #ff4d4d; --rose-d: #d93636;
  --ink: #3c3c3c; --ink-2: #0b0b09; --muted: #777; --line: #e5e5e5; --soft: #f7f7f7; --white: #fff;
  --round: 'Nunito', 'Arial Rounded MT Bold', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1080px; --gutter: clamp(16px, 4vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--round); font-weight: 600;
       font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--round); font-weight: 900; color: var(--ink-2); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* the chunky buttons: a solid lip underneath that the button presses into */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
       padding: 12px 26px; border-radius: 16px; border: 2px solid transparent; font: 800 15px/1.1 var(--round);
       letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap;
       background: var(--blue); color: var(--white); box-shadow: 0 4px 0 var(--blue-d);
       transition: transform .08s ease, box-shadow .08s ease, filter .15s ease; -webkit-tap-highlight-color: transparent; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--blue-d); }
.btn-ghost { background: var(--white); color: var(--blue); border-color: var(--line); box-shadow: 0 4px 0 var(--line); }
.btn-ghost:active { box-shadow: 0 0 0 var(--line); }
.btn-leaf { background: var(--leaf); box-shadow: 0 4px 0 var(--leaf-d); }
.btn-leaf:active { box-shadow: 0 0 0 var(--leaf-d); }
.btn-wide { width: 100%; }
.hero-ctas .btn, .btn-wide, .mobile-nav .btn, .final .btn { white-space: normal; text-align: center; }
.hero-in > *, .feat-in > *, .join > * { min-width: 0; }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 13px; border-radius: 13px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 2px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 16px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 36px; height: 36px; }
.brand b { font-weight: 900; font-size: 26px; color: var(--blue); letter-spacing: -0.02em; }
.brand span { font-weight: 800; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em;
              border: 2px solid var(--line); border-radius: 8px; padding: 2px 7px; white-space: nowrap; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex-shrink: 0; }
.brand, .nav-acts { flex-shrink: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 12px; text-decoration: none; font-weight: 800;
               font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.nav-links a:hover { background: var(--soft); color: var(--blue); }
.nav-acts { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--line);
            background: var(--white); box-shadow: 0 3px 0 var(--line); font: 900 22px/1 var(--round); color: var(--ink); cursor: pointer; }
.mobile-nav { display: none; }
@media (max-width: 1280px) { .nav-links li.wide { display: none; } }
@media (max-width: 1100px) { .brand span { display: none; } }
@media (max-width: 980px) {
  .nav-links, .nav-acts .hide-sm { display: none; }
  .menu-btn { display: inline-block; }
  .mobile-nav.open { display: grid; gap: 6px; position: fixed; inset: 70px 0 0; z-index: 49; background: var(--white);
                     padding: 18px var(--gutter); align-content: start; overflow-y: auto; }
  .mobile-nav a:not(.btn) { padding: 14px 6px; border-bottom: 2px solid var(--soft); text-decoration: none; font-weight: 800; color: var(--ink-2); }
  .mobile-nav .btn { margin-top: 10px; }
}
@media (max-width: 420px) { .brand span { display: none; } .brand b { font-size: 22px; } .nav-acts .btn { padding: 9px 12px; font-size: 12px; } }
@media (max-width: 359px) { .nav-acts .btn { display: none; } }

/* footer */
.footer { background: var(--blue); color: var(--white); padding: clamp(40px, 6vw, 64px) 0 28px; }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; padding-bottom: 28px; border-bottom: 2px solid rgba(255,255,255,.25); }
.footer .brand b { color: var(--white); }
.footer .brand span { color: var(--white); border-color: rgba(255,255,255,.4); }
.foot-brand p { margin-top: 14px; opacity: .9; font-size: 15px; max-width: 300px; }
.powered { margin-top: 10px; font-size: 13px; font-weight: 800; opacity: .8; }
.foot-col h4 { margin: 4px 0 12px; font-weight: 900; font-size: 16px; }
.foot-col a { display: block; text-decoration: none; padding: 4px 0; font-weight: 700; opacity: .9; font-size: 15px; }
.foot-col a:hover { opacity: 1; text-decoration: underline; }
.foot-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; font-size: 14px; font-weight: 700; opacity: .9; }
.foot-bot a { margin-left: 16px; text-decoration: none; }
.foot-bot a:hover { text-decoration: underline; }

@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: 1fr; } .foot-bot a { margin: 0 16px 0 0; } }

/* reveal as you scroll, and the shared motion */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .rv.in { opacity: 1; transform: none; }
:root { --spring: cubic-bezier(.34, 1.56, .64, 1); --ease: cubic-bezier(.22, 1, .36, 1); }
@keyframes popIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(6px) rotate(1.5deg); } }
@keyframes wiggle { 25% { transform: rotate(-10deg); } 50% { transform: rotate(8deg); } 75% { transform: rotate(-4deg); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(0); } 33% { transform: translate(6px, -10px) rotate(60deg); } 66% { transform: translate(-6px, 6px) rotate(-30deg); } }
.js .rise { animation: riseIn .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 1s); }
.js .pop { animation: popIn .6s var(--spring) both; animation-delay: calc(var(--d, 0) * 1s); }
.js .float { animation: popIn .6s var(--spring) both, floatA 4.5s ease-in-out infinite; animation-delay: calc(var(--d, 0) * 1s), calc(var(--d, 0) * 1s + .7s); }

/* the little shapes that drift behind a mascot */
.spark { position: absolute; pointer-events: none; z-index: 1; }
.spark.s1 { width: 18px; height: 18px; border-radius: 50%; background: var(--amber); }
.spark.s2 { width: 14px; height: 14px; border-radius: 4px; background: var(--leaf); }
.spark.s3 { width: 22px; height: 22px; }
.spark.s3::before, .spark.s3::after { content: ""; position: absolute; left: 50%; top: 0; width: 6px; height: 100%; margin-left: -3px; border-radius: 3px; background: var(--blue); }
.spark.s3::after { transform: rotate(90deg); }
.spark.s4 { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--rose); }

/* a speech bubble */
.bubble { position: absolute; background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 10px 14px;
          box-shadow: 0 4px 0 var(--line); font-weight: 800; font-size: 14px; color: var(--ink-2); line-height: 1.25; z-index: 2; }
.bubble small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

@media (prefers-reduced-motion: reduce) {
  .js *, .js *::before, .js *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
.nav-links a[aria-current="page"] { color: var(--blue); background: var(--sky); }

/* ---------------- sign in and sign up ---------------- */
.auth { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); overflow-x: clip; }
.auth-in { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: clamp(28px, 6vw, 80px); align-items: center; }
.auth-in > * { min-width: 0; }
.auth-side { text-align: center; }
.auth-side h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.12; margin-bottom: 10px; }
.auth-side h1 em { font-style: normal; color: var(--blue); }
.auth-side .lede { color: var(--muted); font-size: 18px; max-width: 420px; margin: 0 auto; }
.auth-art { position: relative; width: min(100%, 380px); aspect-ratio: 1 / 1.05; margin: 22px auto 0; }
.auth-art .blob { position: absolute; inset: 10% 6% 2% 6%; background: var(--sky); border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%; }
.auth-art .kemi { position: absolute; left: 50%; bottom: 0; height: 100%; transform: translateX(-50%); z-index: 1; }
.auth-art .b1 { left: -4%; top: 14%; }
.auth-art .b2 { right: -6%; top: 46%; }
.auth-art .spark.s1 { left: 10%; top: 4%; } .auth-art .spark.s2 { right: 12%; top: 8%; }
.auth-art .spark.s3 { right: 2%; bottom: 18%; } .auth-art .spark.s4 { left: 2%; bottom: 30%; }
.js .auth-art .blob { animation: popIn .9s var(--spring) both, blobMorph 9s ease-in-out 1s infinite; }
.js .auth-art .kemi { animation: kemiIn .9s var(--spring) .12s both, bob 4.5s ease-in-out 1.1s infinite; }
.js .auth-art .spark { animation: popIn .5s var(--spring) both, drift 7s ease-in-out infinite; }
.js .auth-art .spark.s1 { animation-delay: 1.2s, 1.7s; } .js .auth-art .spark.s2 { animation-delay: 1.3s, 2.4s; }
.js .auth-art .spark.s3 { animation-delay: 1.4s, 2s; } .js .auth-art .spark.s4 { animation-delay: 1.5s, 2.8s; }
@keyframes kemiIn { from { opacity: 0; transform: translate(-50%, 50px) scale(.92); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }
@keyframes blobMorph { 0%, 100% { border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%; transform: rotate(0); }
                       50% { border-radius: 56% 44% 52% 48% / 46% 56% 44% 54%; transform: rotate(6deg); } }

.card { background: var(--white); border: 2px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 32px); box-shadow: 0 6px 0 var(--line); }
.js .auth .card { animation: riseIn .6s var(--spring) .1s both; }
.card h2 { font-size: clamp(26px, 3.4vw, 32px); text-align: center; margin-bottom: 6px; }
.card .sub { text-align: center; color: var(--muted); margin-bottom: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label { font-weight: 900; font-size: 14px; color: var(--ink-2); }
.field input:not([type=checkbox]), .field select { font: 700 16px var(--round); color: var(--ink-2); padding: 13px 14px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--soft); width: 100%; min-height: 52px; transition: border-color .15s ease, background .15s ease; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); background: var(--white); }
.field input::placeholder { color: #afafaf; font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; margin-bottom: 10px; }
.check input { accent-color: var(--blue); width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; }
.check a, .alink { color: var(--blue); font-weight: 800; }
.alink { font-size: 14px; text-decoration: none; text-transform: uppercase; letter-spacing: .05em; }
.alink:hover { text-decoration: underline; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 18px; }
.auth-row .check { margin: 0; }
.btn-google { width: 100%; gap: 12px; color: var(--ink); }
.btn-google img { width: 22px; height: 22px; }
.or { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--muted); font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.or::before, .or::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; font-weight: 700; }
.switch { text-align: center; margin-top: 20px; padding-top: 18px; border-top: 2px solid var(--soft); color: var(--muted); font-weight: 700; }
.switch a { color: var(--blue); font-weight: 900; text-decoration: none; }
.switch a:hover { text-decoration: underline; }
.flash-message { border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-weight: 800; font-size: 15px; border: 2px solid; }
.flash-message.error, .flash-message.danger { background: #ffe9e9; border-color: #ffc1c1; color: var(--rose-d); }
.flash-message.success { background: var(--mint); border-color: #b9ecc9; color: var(--leaf-d); }
.flash-message.info, .flash-message.message, .flash-message.warning { background: var(--sky); border-color: var(--sky-2); color: var(--blue-d); }
.js .flash-message { animation: shake .45s ease both; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px !important; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--blue); font: 900 13px var(--round);
             letter-spacing: .06em; text-transform: uppercase; cursor: pointer; padding: 8px; }
.strength { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.strength i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .25s var(--ease), background .2s ease; }
.strength-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 800; font-size: 13px; color: var(--muted); }
.rules { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.rules li.ok { color: var(--leaf-d); }
.rules li::before { content: '○ '; }
.rules li.ok::before { content: '● '; }
.match { font-weight: 800; font-size: 13px; min-height: 1em; }
.perks { list-style: none; padding: 0; margin: 22px auto 0; display: grid; gap: 10px; max-width: 420px; text-align: left; }
.perks button { width: 100%; display: flex; align-items: center; gap: 14px; background: var(--white); border: 2px solid var(--line); border-radius: 18px;
                box-shadow: 0 4px 0 var(--line); padding: 12px 14px; cursor: pointer; font: 800 16px var(--round); color: var(--ink-2); text-align: left;
                transition: transform .08s ease, box-shadow .08s ease; }
.perks button:active { transform: translateY(4px); box-shadow: 0 0 0 var(--line); }
.perks button b { flex: 1; font-weight: 900; }
.perks button i { font-style: normal; color: var(--blue); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.perks .code { width: 44px; height: 34px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--white); font-size: 12px; font-weight: 900;
               box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.c-blue { background: var(--blue); } .c-leaf { background: var(--leaf); } .c-amber { background: var(--amber); } .c-rose { background: var(--rose); } .c-ink { background: var(--ink-2); }
.c-violet { background: #7c3aed; } .c-teal { background: #0d9488; }
.js .perks li { animation: riseIn .5s var(--spring) both; }
.js .perks li:nth-child(1) { animation-delay: .5s; } .js .perks li:nth-child(2) { animation-delay: .62s; } .js .perks li:nth-child(3) { animation-delay: .74s; }
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(11,11,9,.55); display: grid; place-items: center; padding: 16px; }
.modal .card { max-width: 440px; width: 100%; position: relative; }
.js .modal:not(.hidden) .card { animation: popIn .35s var(--spring) both; }
.modal h3 { font-size: 24px; margin: 0 30px 12px 0; }
.modal p { color: var(--muted); margin-bottom: 10px; }
.modal .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.modal .x { position: absolute; right: 14px; top: 12px; background: none; border: 0; color: var(--muted); font-size: 28px; cursor: pointer; line-height: 1; }
.hidden { display: none !important; }
@media (max-width: 860px) {
  .auth-in { grid-template-columns: 1fr; gap: 18px; }
  /* phones: headline, a smaller Kemi, the form, then the info tiles */
  .auth-side { display: contents; }
  .auth-side h1 { order: 0; text-align: center; margin: 0; }
  .auth-art { order: 1; width: min(100%, 190px); margin-top: 0; }
  .auth-in > section:not(.auth-side) { order: 2; }
  .perks { order: 3; margin-top: 4px; width: 100%; max-width: none; }
  .auth-side .lede { display: none; }
}
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; gap: 0; } }
