/* --- Landing palette -----------------------------------------------------

   Public pages (welcome home + login) share this sheet. The palette and
   motion mirror the leaderboard app's landing (landing.css / motion.css) so
   the Web4Jobs apps read as one family. Always light.
   ------------------------------------------------------------------------- */

:root {
  --land-surface: #f7f5ff;
  --land-line: #e7e1ff;
  --land-violet-tint: #ede9fe;
  --land-violet-wash: #efeaff;
  --land-violet: #8b60ff;
  --land-violet-deep: #7c3aed;
  --land-purple: #a855f7;
  --land-primary: #432b84;
  --land-ink: #2a1a5c;
  --land-night: #1b1240;
  --land-gold: #fbbf24;
  --land-amber: #f59e0b;
  --land-amber-deep: #d97706;
  --land-amber-ink: #b45309;
  --land-amber-tint: #fef3c7;
  --land-cream: #fff7e0;
  --land-peach: #ffe9d6;
  --land-sand: #f3e3c3;
  --land-pink: #f472b6;
  --land-pink-deep: #ec4899;
  --land-green: #10b981;
  --land-green-tint: #d1fae5;
  --land-red: #dc2626;
  --land-red-tint: #fee2e2;
  --land-blue: #3b82f6;
  --land-cyan: #0891b2;

  --fg: #1f1640;
  --muted: #6b6485;
  --r-card: 20px;
  --r-control: 12px;
  --e-1: 0 1px 2px rgba(42, 26, 92, .06), 0 2px 8px rgba(42, 26, 92, .06);
  --e-2: 0 4px 12px rgba(42, 26, 92, .10), 0 12px 32px rgba(42, 26, 92, .10);
  --focus-ring: 0 0 0 3px rgba(139, 96, 255, .45);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.land {
  margin: 0;
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  color: var(--fg);
  background: var(--land-surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

:where(.land) a { color: inherit; text-decoration: none; }
:where(.land) :where(h1, h2, h3, p) { margin: 0; }
:where(.land) :where(ul, ol) { list-style: none; margin: 0; padding: 0; }

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

.muted { color: var(--muted); }

/* --- Brand background (hero, login panel, contact) --------------------- */
.login-brand {
  color: #fff;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(139, 96, 255, .55) 0%, transparent 60%),
    radial-gradient(90% 70% at 100% 100%, rgba(236, 72, 153, .35) 0%, transparent 60%),
    linear-gradient(145deg, var(--land-primary) 0%, var(--land-ink) 100%);
}

/* --- Interaction ------------------------------------------------------- */
.interactive {
  transition: transform 150ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms var(--ease-out);
  outline: none;
}
.interactive:hover { box-shadow: var(--e-2); }
.interactive:active { transform: scale(.985); }
.interactive:focus-visible { box-shadow: var(--focus-ring); }

.sheen { position: relative; overflow: hidden; isolation: isolate; }
.sheen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 620ms var(--ease-out);
}
.sheen:hover::after { transform: translateX(120%); }

/* --- Buttons & chips --------------------------------------------------- */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 32px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.btn-pill.sm { height: 40px; padding: 0 16px; font-size: 14px; font-weight: 700; }
.btn-primary-land { background: var(--land-primary); color: #fff !important; box-shadow: var(--e-2); }
.btn-gold { background: linear-gradient(90deg, var(--land-gold), var(--land-amber)); color: var(--land-ink) !important; box-shadow: 0 8px 24px rgba(245, 158, 11, .45); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .4); color: #fff; background: transparent; font-weight: 700; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-white { background: #fff; color: var(--land-primary) !important; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 800;
}
.chip-amber { background: var(--land-amber-tint); color: var(--land-amber-ink); }
.chip-green { background: var(--land-green-tint); color: #047857; }
.chip-glass { background: rgba(255, 255, 255, .15); color: #fff; font-size: 13px; padding: 4px 16px; }

/* --- Header ------------------------------------------------------------ */
.land-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--land-line);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.land-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.brand img { height: 44px; width: auto; padding: 4px; }
.brand .chip { font-size: 11px; text-transform: uppercase; }
.nav-links { display: none; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s;
}
.nav-links a:hover { background: var(--land-violet-tint); color: var(--land-primary); }
.nav-links a:focus-visible, .burger:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn-pill { display: none; }
.burger {
  width: 48px; height: 48px; border: 0; border-radius: 999px; background: transparent;
  color: var(--fg); font-size: 18px; cursor: pointer;
}
.burger:hover { background: var(--land-violet-tint); }
.mobile-nav { display: none; border-top: 1px solid var(--land-line); background: #fff; padding: 16px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: var(--r-control); font-weight: 600; }
.mobile-nav a:hover { background: var(--land-violet-tint); }
.mobile-nav .btn-pill { width: 100%; margin-top: 8px; height: 44px; }
@media (min-width: 640px) { .nav-actions .btn-pill { display: inline-flex; } }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .burger, .mobile-nav, .mobile-nav.open { display: none; }
}

/* --- Sections ---------------------------------------------------------- */
section { scroll-margin-top: 64px; }
.section-pad { padding-block: 64px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--land-primary);
}
.dark .eyebrow { color: var(--land-gold); }
.section-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-top: 8px; }
@media (min-width: 768px) { .section-title { font-size: 36px; } }
.center { text-align: center; }
.lede { max-width: 42rem; margin: 16px auto 0; }

/* Hero */
.hero-grid { display: grid; gap: 64px; align-items: center; padding-block: 64px; }
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } }
.hero-copy > * + * { margin-top: 32px; }
.hero h1 { font-size: 36px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
@media (min-width: 768px) { .hero h1 { font-size: 52px; } }
.grad-text {
  background: linear-gradient(90deg, var(--land-gold), var(--land-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { font-size: 18px; color: rgba(255, 255, 255, .85); max-width: 36rem; }
/* Both CTAs stay on one line at every width: on a phone they share the row
   and give up side padding rather than stacking. */
.hero-ctas { display: flex; flex-wrap: nowrap; gap: 16px; }
@media (max-width: 519.98px) {
  .hero-ctas { gap: 8px; }
  .hero-ctas .btn-pill { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 14px; }
}
/* margin-top here, not 0: `.stats` comes after `.hero-copy > * + *` and was
   cancelling its 32px, leaving the numbers glued to the CTAs. */
.stats { display: flex; flex-wrap: wrap; gap: 32px; margin: 64px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.stats dd { margin: 0; font-size: 28px; font-weight: 800; color: var(--land-gold); }

/* Hero mockup: a live attendance board with a rotating QR. */
.board {
  position: relative; background: #fff; color: var(--fg);
  border-radius: var(--r-card); padding: 24px; box-shadow: 0 24px 60px rgba(20, 10, 60, .35);
}
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.board-title { font-weight: 800; font-size: 15px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--land-green); display: inline-block; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); } 50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } }
.board-body { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.qr {
  position: relative; width: 120px; height: 120px; border-radius: 14px; padding: 10px;
  background: var(--land-violet-wash); display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
}
.qr span { border-radius: 2px; background: var(--land-ink); transition: opacity .4s; }
.qr span.off { opacity: 0; }
.qr-timer { position: absolute; left: 10px; right: 10px; bottom: -8px; height: 4px; border-radius: 4px; background: var(--land-line); overflow: hidden; }
.qr-timer i { display: block; height: 100%; background: var(--land-violet); animation: timer 4s linear infinite; transform-origin: left; }
@keyframes timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.gauge-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.gauge-value { font-size: 36px; font-weight: 800; line-height: 1.1; }
.gauge-value small { font-size: 16px; color: var(--muted); font-weight: 700; }
.bar { height: 8px; border-radius: 8px; background: var(--land-violet-wash); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--land-violet), var(--land-pink)); transition: width 1s var(--ease-out); }
.feed { margin-top: 24px; border-top: 1px solid var(--land-line); padding-top: 16px; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px; animation: slideIn .5s var(--ease-out) both; }
.feed .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.feed .who { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.float-badge {
  position: absolute; right: -8px; top: -16px; background: var(--land-gold); color: var(--land-ink);
  font-weight: 800; font-size: 13px; padding: 8px 14px; border-radius: 999px; box-shadow: var(--e-2);
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(-3deg); } }

/* Journey: the morning check-in in three steps */
.journey { position: relative; margin-top: 64px; max-width: 720px; margin-left: auto; margin-right: auto; }
.journey::before {
  content: ''; position: absolute; left: 22px; top: 32px; bottom: 32px; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--land-amber-deep), var(--land-blue), var(--land-purple));
  transform-origin: top; transform: scaleY(var(--grow, 1)); transition: transform 1.4s var(--ease-out) .1s;
}
.journey li { position: relative; display: flex; align-items: flex-start; gap: 16px; }
.journey li + li { margin-top: 32px; }
.step-badge {
  position: relative; z-index: 1; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 18px; box-shadow: 0 0 0 4px var(--land-surface), 0 6px 18px rgba(67, 43, 132, .35);
}
.card {
  flex: 1; background: #fff; border: 1px solid var(--land-line); border-radius: var(--r-card);
  padding: 16px; box-shadow: var(--e-1);
}
.card h3 { font-size: 18px; font-weight: 800; margin: 6px 0 4px; }
.card p { font-size: 14px; color: var(--muted); }
.step-n { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-right: 8px; }

/* Features: dark grid */
.dark { background: var(--land-night); color: #fff; }
.feat-grid { display: grid; gap: 16px; margin-top: 64px; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-card); padding: 24px; height: 100%;
}
.feat:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.feat .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; margin-bottom: 16px; }
.feat h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.feat p { font-size: 14px; color: rgba(255, 255, 255, .72); }

/* Roles: warm ticket cards */
.warm { background: linear-gradient(135deg, var(--land-cream), var(--land-peach)); }
.roles { display: grid; gap: 32px; margin-top: 64px; }
@media (min-width: 900px) { .roles { grid-template-columns: repeat(3, 1fr); } }
.ticket { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: var(--r-card); box-shadow: var(--e-2); height: 100%; }
.ticket-top { display: flex; align-items: center; gap: 12px; padding: 20px 24px; color: #fff; font-weight: 800; font-size: 18px; }
.ticket-top i { font-size: 22px; }
.ticket-body { flex: 1; padding: 20px 24px; border-top: 2px dashed var(--land-sand); }
.ticket-body li { display: flex; gap: 10px; font-size: 14px; padding: 5px 0; }
.ticket-body li i { color: var(--land-green); margin-top: 4px; font-size: 12px; }

/* Platforms bento */
.bento { display: grid; gap: 16px; margin-top: 64px; }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, minmax(180px, auto)); }
  .bento .big { grid-row: span 2; }
  .bento .wide { grid-column: span 2; }
}
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  min-height: 180px; height: 100%; overflow: hidden; border-radius: var(--r-card); padding: 32px;
  color: #fff !important; box-shadow: var(--e-2);
}
.tile.big { min-height: 260px; }
.tile .bg-ico { position: absolute; right: -8px; top: -8px; font-size: 90px; opacity: .15; transition: transform .3s var(--ease-out); }
.tile.big .bg-ico { font-size: 130px; }
.tile:hover .bg-ico { transform: rotate(6deg); }
.tile-name { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; }
.tile-name i { font-size: 16px; transition: transform .2s; }
.tile:hover .tile-name i { transform: translateX(4px); }
.tile p { font-size: 14px; color: rgba(255, 255, 255, .85); max-width: 28rem; }
.tile.here { outline: 3px solid var(--land-gold); outline-offset: 3px; }

/* Contact split card */
.contact { display: grid; overflow: hidden; background: #fff; border-radius: var(--r-card); box-shadow: var(--e-2); }
@media (min-width: 768px) { .contact { grid-template-columns: 1fr 1.2fr; } }
.contact-brand { padding: 32px; }
.contact-brand > * + * { margin-top: 16px; }
@media (min-width: 768px) { .contact-brand { padding: 64px; } }
.contact ul { padding: 16px; }
@media (min-width: 768px) { .contact ul { padding: 32px; } }
.contact li { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.contact li + li { border-top: 1px solid var(--land-violet-wash); }
.contact .ci { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--land-violet-tint); color: var(--land-primary); }
.contact .cl { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact a { font-weight: 600; color: var(--land-primary); text-decoration: underline; }
.contact p { overflow-wrap: anywhere; }

.land-footer { border-top: 1px solid var(--land-line); background: #fff; padding: 32px 0; text-align: center; font-size: 14px; color: var(--muted); }

/* --- Scroll reveal ----------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.from-left { transform: translateX(-40px); }
.js .reveal.from-right { transform: translateX(40px) rotate(2deg); }
.js .reveal.pop { transform: scale(.85); }
.js .reveal.in { opacity: 1; transform: none; }
.js .journey:not(.in) { --grow: 0; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .journey:not(.in) { --grow: 1; }
  .sheen::after, .interactive, .live-dot, .float-badge, .qr-timer i, .feed li { transition: none; animation: none; }
  .interactive:active { transform: none; }
}

/* --- Login ------------------------------------------------------------- */
.login-grid { display: grid; min-height: 100vh; background: #fff; }
@media (min-width: 768px) { .login-grid { grid-template-columns: 1fr 1fr; } }
.login-aside { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow: hidden; padding: 32px 16px; }
@media (min-width: 640px) { .login-aside { padding: 32px; } }
@media (min-width: 768px) { .login-aside { padding: 64px; } }
.login-aside .logo { height: 64px; width: auto; }
@media (min-width: 768px) { .login-aside .logo { height: 88px; } }
.login-pitch, .login-foot, .login-points { display: none; }
@media (min-width: 768px) { .login-pitch, .login-foot, .login-points { display: block; } }
.login-pitch { max-width: 440px; }
.login-pitch > * + * { margin-top: 16px; }
.login-pitch h2 { font-size: 36px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.login-pitch p { color: rgba(255, 255, 255, .8); }
.login-points li { display: flex; align-items: center; gap: 12px; padding: 6px 0; color: rgba(255, 255, 255, .9); font-size: 15px; font-weight: 600; }
.login-points li i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: var(--land-gold); font-size: 14px; }
.login-foot { font-size: 14px; color: rgba(255, 255, 255, .6); }
.login-foot a { text-decoration: underline; }
.login-main { display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
@media (min-width: 640px) { .login-main { padding: 32px; } }
.login-form {
  width: 100%; max-width: 440px; padding: 32px; border-radius: var(--r-card);
  border: 1px solid var(--land-line); background: #fff; box-shadow: var(--e-2);
  border-top: 4px solid var(--land-violet);
}
.login-form > * + * { margin-top: 24px; }
.login-form h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.field > * + * { margin-top: 8px; }
.field + .field { margin-top: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; }
.input {
  display: block; width: 100%; height: 48px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--fg);
  background: var(--land-surface); border: 1px solid var(--land-line); border-radius: var(--r-control);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus-visible { border-color: var(--land-primary); box-shadow: var(--focus-ring); }
.input.invalid { border-color: var(--land-red); }
.input:-webkit-autofill { -webkit-text-fill-color: var(--fg); box-shadow: 0 0 0 1000px var(--land-surface) inset; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-toggle {
  position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover { background: var(--land-violet-tint); color: var(--land-primary); }
.pw-toggle:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.field-error { font-size: 14px; color: var(--land-red); }
.alert-land { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-control); background: var(--land-red-tint); color: #991b1b; font-size: 14px; font-weight: 600; }
.alert-land i { margin-top: 3px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; min-height: 32px; }
.check input { width: 18px; height: 18px; accent-color: var(--land-primary); }
.btn-submit { width: 100%; border-radius: 14px; font-size: 16px; font-weight: 700; }
.btn-submit[aria-busy="true"] { opacity: .8; cursor: progress; }
.login-alt { text-align: center; font-size: 14px; color: var(--muted); }
.login-alt a { color: var(--land-primary); font-weight: 700; }
.login-alt a:hover { text-decoration: underline; }
.back-home { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.back-home:hover { color: #fff; }
