/* ==========================================================================
   Canada Part-Time Job LP — pixel clone
   Dark "mobile shell" landing page. No frameworks, no external requests.
   ========================================================================== */

/* --- Design tokens (Tailwind v3 palette) ---------------------------------- */
:root {
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;

  --zinc-950: #09090b;
  --zinc-900: #18181b;
  --zinc-800: #27272a;

  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-950: #022c22;

  --green-600: #16a34a;
  --green-700: #15803d;

  --shell-width: 500px;
  --content-width: 28rem; /* max-w-md */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

/* --- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  max-width: var(--shell-width);
  padding: 0 0 calc(6rem + env(safe-area-inset-bottom)); /* room for the sticky CTA */
  background: var(--gray-950);
  color: var(--gray-100);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

@media (min-width: 751px) {
  body {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
}

/* Optional: drop the 500px phone frame and let the page fill the viewport. */
body.is-fluid {
  max-width: none;
}

body.is-fluid .hero {
  border-radius: 0;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img,
svg {
  display: block;
}

svg {
  fill: currentColor;
}

:focus-visible {
  outline: 2px solid var(--emerald-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Icons ---------------------------------------------------------------- */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 1rem 2.5rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(to bottom right, #18181b, #111827, #000);
  border-bottom: 1px solid var(--zinc-800);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero__badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--emerald-500);
  color: var(--gray-950);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.hero__title {
  margin-bottom: 0.5rem;
  color: var(--emerald-400);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.hero__subtitle {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-300);
  font-size: 0.75rem;
  line-height: 1rem;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

@media (min-width: 640px) {
  .hero__title {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .hero__subtitle {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

/* --- Job summary card inside the hero ------------------------------------ */
.job-card {
  max-width: 24rem;
  margin-inline: auto;
  padding: 1rem;
  border: 1px solid var(--zinc-800);
  border-radius: 1rem;
  background: var(--zinc-900);
  color: var(--gray-100);
  text-align: left;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.job-card > * + * {
  margin-top: 0.75rem;
}

.job-card__head {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--zinc-800);
}

.job-card__eyebrow {
  display: block;
  color: var(--emerald-500);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.job-card__title {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5rem;
}

.job-card__note {
  color: var(--gray-400);
  font-size: 0.75rem;
  line-height: 1rem;
}

.pay {
  font-size: 0.75rem;
  line-height: 1rem;
}

.pay > * + * {
  margin-top: 0.5rem;
}

.pay__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pay__row .icon {
  width: 1rem;
  height: 1rem;
  color: var(--emerald-400);
}

.pay__label {
  display: block;
  color: var(--gray-300);
  font-weight: 700;
}

.pay__value {
  color: var(--emerald-400);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5rem;
}

/* ==========================================================================
   Content column
   ========================================================================== */
.content {
  max-width: var(--content-width);
  margin: 1.5rem auto 0;
  padding: 0 1rem;
}

.content > * + * {
  margin-top: 1.5rem;
}

.card {
  padding: 1.25rem;
  border: 1px solid var(--zinc-800);
  border-radius: 1rem;
  background: var(--zinc-900);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.card__title {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5rem;
}

.card__title .icon {
  margin-right: 0.5rem;
  color: var(--emerald-400);
  font-size: 1rem;
}

.card__title--spaced {
  margin-bottom: 1rem;
}

/* --- Shifts --------------------------------------------------------------- */
.shifts {
  color: var(--gray-300);
  font-size: 0.75rem;
  line-height: 1rem;
}

.shifts > * + * {
  margin-top: 0.5rem;
}

.shift {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem;
  border: 1px solid var(--zinc-800);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
}

.shift__name {
  display: flex;
  align-items: center;
  color: var(--emerald-300);
  font-weight: 600;
}

.shift__name .icon {
  margin-right: 0.5rem;
}

.shift__time {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: var(--zinc-800);
  color: var(--gray-200);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .shifts {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .shift__time {
    font-size: 0.875rem;
  }
}

/* --- Duties --------------------------------------------------------------- */
.duties {
  color: var(--gray-300);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.duties > * + * {
  margin-top: 0.75rem;
}

.duties li {
  display: flex;
  align-items: flex-start;
}

.duties .icon {
  margin-top: 0.25rem;
  margin-right: 0.75rem;
  color: var(--emerald-400);
}

.duties strong {
  font-weight: 700;
}

/* --- Earnings ------------------------------------------------------------- */
.card--earnings {
  border-color: rgba(6, 78, 59, 0.5);
  background: linear-gradient(to right, var(--emerald-950), var(--zinc-900));
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.card--earnings .card__title {
  color: var(--emerald-400);
}

.earnings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  text-align: center;
}

.earnings__tile {
  padding: 0.75rem;
  border: 1px solid var(--zinc-800);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.earnings__tile span {
  display: block;
  color: var(--gray-400);
  font-size: 0.75rem;
  line-height: 1rem;
}

.earnings__tile strong {
  color: var(--emerald-300);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5rem;
}

.earnings__note {
  margin-top: 0.75rem;
  color: var(--gray-400);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

/* --- Trust badges --------------------------------------------------------- */
.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  color: var(--gray-300);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.trust span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.25rem;
  border: 1px solid var(--zinc-800);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  line-height: 1.15;
}

/* --- FAQ ------------------------------------------------------------------ */
.faq {
  color: var(--gray-300);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.faq h3 {
  color: #fff;
  font-size: inherit;
  font-weight: 600;
}

.faq p {
  margin-top: 0.25rem;
  color: var(--gray-400);
  font-size: 0.75rem;
  line-height: 1rem;
}

.faq hr {
  height: 0;
  margin: 0.75rem 0;
  border-top: 1px solid var(--zinc-800);
}

/* ==========================================================================
   Testimonial marquee
   ========================================================================== */
.reviews {
  margin-top: 2rem;
  padding: 1.5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--zinc-800);
  border-bottom: 1px solid var(--zinc-800);
  background: var(--zinc-950);
}

.reviews__title {
  margin-bottom: 1rem;
  color: var(--gray-400);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.marquee {
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.review {
  flex: none;
  width: 16rem;
  margin-right: 1rem;
  padding: 1rem;
  border: 1px solid var(--zinc-800);
  border-radius: 0.75rem;
  background: var(--zinc-900);
}

.review__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.avatar--emerald {
  background: var(--emerald-600);
  color: var(--gray-950);
}

.avatar--emerald-dark {
  background: var(--emerald-700);
  color: #fff;
}

.avatar--emerald-darker {
  background: var(--emerald-800);
  color: #fff;
}

.avatar--gray {
  background: var(--gray-800);
  color: #fff;
}

.avatar--zinc {
  background: var(--zinc-800);
  color: #fff;
}

.review__name {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.review__verified {
  display: block;
  color: var(--emerald-400);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.review__quote {
  color: var(--gray-300);
  font-size: 0.75rem;
  line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }

  .marquee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .marquee::-webkit-scrollbar {
    display: none;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  max-width: var(--content-width);
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  color: var(--gray-500);
  font-size: 0.75rem;
  line-height: 1rem;
  text-align: center;
}

.site-footer > * + * {
  margin-top: 0.5rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
}

.site-footer__links a {
  padding: 0.375rem 0.125rem; /* 44px-ish tap target on phones */
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__links a:hover {
  color: var(--gray-300);
}

/* Language switcher in the footer */
.lang-switch {
  display: flex;
  justify-content: center;
}

.lang-switch select {
  -webkit-appearance: none;
  appearance: none;
  padding: 0.375rem 1.75rem 0.375rem 0.875rem;
  border: 1px solid var(--zinc-800);
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M0 0l6 6 6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 0.55rem;
  color: var(--gray-300);
  font-family: inherit;
  font-size: 0.75rem;
  line-height: 1.2;
  cursor: pointer;
}

.lang-switch select:focus-visible {
  outline: 2px solid var(--emerald-400);
  outline-offset: 2px;
}

/* ==========================================================================
   Live payout toast
   ========================================================================== */
.toast {
  position: fixed;
  bottom: calc(5rem + env(safe-area-inset-bottom));
  left: calc(1rem + env(safe-area-inset-left));
  z-index: 40;
  max-width: min(20rem, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 0.75rem;
  background: rgba(24, 24, 27, 0.95);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(5rem);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast__name {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
}

.toast__amount {
  color: var(--emerald-400);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

/* ==========================================================================
   Consent banner (DSGVO / EU)
   ========================================================================== */
.consent {
  position: fixed;
  left: 50%;
  bottom: calc(var(--cta-bar-h, 80px) + 0.75rem);
  z-index: 45;
  width: min(28rem, calc(100vw - 1.5rem));
  padding: 0.875rem;
  transform: translateX(-50%);
  border: 1px solid var(--zinc-800);
  border-radius: 0.75rem;
  background: rgba(24, 24, 27, 0.98);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  color: var(--gray-300);
  font-size: 0.75rem;
  line-height: 1.45;
  animation: consent-in 0.25s ease both;
}

@keyframes consent-in {
  from {
    opacity: 0;
    transform: translate(-50%, 0.5rem);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.consent__text {
  margin: 0;
}

.consent__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.consent__btn {
  flex: 1 1 0;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.consent__btn:active {
  transform: scale(0.98);
}

.consent__btn--primary {
  background: var(--emerald-500);
  color: var(--gray-950);
}

.consent__btn--ghost {
  background: transparent;
  border: 1px solid #3f3f46;
  color: var(--gray-300);
}

/* ==========================================================================
   Sticky CTA
   ========================================================================== */
.cta-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  padding: 0.75rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--zinc-800);
  background: rgba(9, 9, 11, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cta-bar__inner {
  max-width: var(--content-width);
  margin-inline: auto;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3.5rem; /* the original's icon font sets a 28px line box */
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(to right, var(--emerald-500), var(--green-600));
  color: var(--gray-950);
  font-size: 0.875rem;
  font-weight: 900;
  line-height: 1.25rem;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease, transform 0.15s ease;
  touch-action: manipulation; /* no 300 ms tap delay on mobile */
  -webkit-tap-highlight-color: transparent;
}

.cta:hover {
  background: linear-gradient(to right, var(--emerald-600), var(--green-700));
}

.cta:active {
  transform: scale(0.95);
}

.cta .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.cta span {
  text-wrap: balance; /* nicer two-line wrap on narrow phones */
}

@media (min-width: 640px) {
  .cta {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

/* ==========================================================================
   Phones
   ========================================================================== */

/* Touch devices: hover styles would otherwise "stick" after a tap. */
@media (hover: none) {
  .cta:hover {
    background: linear-gradient(to right, var(--emerald-500), var(--green-600));
  }

  .marquee:hover .marquee__track {
    animation-play-state: running;
  }
}

/* Small phones (iPhone SE, 320–380 px) */
@media (max-width: 380px) {
  .hero {
    padding: 1.75rem 0.875rem 2rem;
  }

  .hero__title {
    font-size: 1.125rem;
    line-height: 1.3;
  }

  .content {
    padding: 0 0.75rem;
  }

  .card {
    padding: 1rem;
  }

  .job-card {
    padding: 0.875rem;
  }

  .shift {
    gap: 0.5rem;
  }

  .cta {
    font-size: 0.8125rem;
    padding-inline: 0.75rem;
  }

  .cta .icon {
    width: 1.125rem;
    height: 1.125rem;
  }
}

/* Very small / landscape: keep the bar from eating the screen */
@media (max-height: 480px) {
  .cta {
    min-height: 3rem;
    padding-block: 0.625rem;
  }

  .toast {
    display: none;
  }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
