@import "./clozie-device.css";

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --card: #f5f5ff;
  --text: #000000;
  --text-muted: #6e6e73;
  --primary: #7B6EF6;
  --secondary: #FF6FA3;
  --accent-cyan: #32D7EF;
  --accent-green: #34D399;
  --hero-from: #7B6EF6;
  --hero-to: #FF6FA3;
  --fill-scale: 0.12;
  --footer-color: #000000;
  --intro-opacity: 1;
  --hero-content-opacity: 0;
  --hero-content-shift: 46px;
}

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

body {
  position: relative;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  transition: background-color 220ms ease-out;
  overflow-x: hidden;
}

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

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.brand-name {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: none;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
  font-size: 15px;
  position: relative;
}

.nav-link {
  padding: 10px 12px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #000000;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle-line {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.menu-toggle-line + .menu-toggle-line {
  margin-top: 6px;
}

.mobile-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 170px;
  padding: 6px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 18px 35px rgba(9, 12, 22, 0.16);
}

.mobile-menu-close {
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.mobile-menu-main {
  display: grid;
  gap: 26px;
  justify-items: center;
}

.mobile-menu-link {
  display: inline-block;
  border-radius: 8px;
  padding: 10px 12px;
  color: #000000;
  font-size: 15px;
  font-weight: 600;
}

.mobile-menu-link:hover {
  background: rgba(0, 0, 0, 0.06);
}

.mobile-menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 218px;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(123, 110, 246, 0.3);
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.mobile-menu-footer {
  display: grid;
  justify-items: center;
  gap: 24px;
}

.mobile-menu-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 500;
}

.mobile-menu-socials {
  display: inline-flex;
  align-items: center;
  gap: 26px;
}

.mobile-menu-socials .social-link svg {
  width: 48px;
  height: 48px;
  fill: #000000;
}

.mobile-menu-copy {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #000000;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out,
    background-color 180ms ease-out;
}

.btn.primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(123, 110, 246, 0.3);
}

.btn.primary:hover {
  background: #6A5DF0;
  transform: translateY(-1px);
}

.btn.primary:active {
  background: #5E52E6;
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(94, 82, 230, 0.35);
}

main {
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

.section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.intro {
  background: transparent;
  min-height: 100vh;
  overflow: visible;
  align-items: flex-start;
  justify-content: center;
  padding-top: 88px;
  padding-bottom: 32px;
}

.hero {
  position: relative;
  z-index: 4;
  background: transparent;
  color: #ffffff;
  min-height: 72vh;
  margin-top: 0;
  padding-top: 1vh;
  padding-bottom: min(160px, 22vh);
  isolation: isolate;
}

.hero-content {
  position: fixed;
  left: 50%;
  top: 35%;
  width: min(92vw, 980px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 0;
  opacity: var(--hero-content-opacity);
  transform: translate(-50%, var(--hero-content-shift));
  pointer-events: none;
  transition: opacity 180ms ease-out, transform 220ms ease-out;
}

.hero-visible .hero-content {
  pointer-events: auto;
}

.hero-content h2 {
  margin: 0 0 22px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-description {
  margin: 0 auto 8px;
  max-width: min(90%, 520px);
  padding: 18px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  display: flex;
  width: fit-content;
  margin-top: 18px;
  margin-left: auto;
  margin-right: auto;
  padding: 18px 34px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  background: #ffffff;
  color: #000000;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.hero-bounce-row {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-bounce-row span {
  display: inline-block;
  font-size: 30px;
  line-height: 1;
  animation: heroEmojiBounce 1.15s ease-in-out infinite;
}

.hero-bounce-row span:nth-child(2) {
  animation-delay: 0.1s;
}

.hero-bounce-row span:nth-child(3) {
  animation-delay: 0.2s;
}

.hero-bounce-row span:nth-child(4) {
  animation-delay: 0.3s;
}

.hero-bounce-row span:nth-child(5) {
  animation-delay: 0.4s;
}

.intro-content {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  align-content: start;
  gap: clamp(16px, 3vw, 36px);
  margin: 0 auto;
  width: min(92vw, 960px);
  opacity: var(--intro-opacity);
  transition: opacity 120ms linear;
}

.intro-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.intro-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-scroll-hint-row {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (max-width: 1100px) {
  .intro-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .intro-left {
    align-items: center;
    text-align: center;
  }

  .intro-right {
    order: -1;
  }
}

.intro-content h1 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(52px, 12vw, 120px);
  letter-spacing: -0.02em;
  color: #000000;
  line-height: 1;
  animation: clozieFlyIn 860ms cubic-bezier(0.18, 0.9, 0.25, 1.08) 1 both;
}

.intro-headline {
  margin: 8px 0 0;
  max-width: min(100%, 28rem);
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  background: linear-gradient(105deg, var(--hero-from) 0%, var(--secondary) 55%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro-cta {
  display: flex;
  width: fit-content;
  margin: 8px 0 0;
  padding: 14px 28px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(18px, 2.8vw, 26px);
  font-weight: 700;
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(123, 110, 246, 0.35);
}

.intro-arrow {
  margin-top: 16px;
  font-size: 36px;
  color: #000000;
  animation: introArrowBounce 1.2s ease-in-out infinite;
}

.scroll-hint {
  margin-top: 6px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(0, 0, 0, 0.5);
}

.intro-bottom-box {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120vh;
  background: linear-gradient(180deg, var(--hero-from) 0%, var(--hero-to) 100%);
  border-top-left-radius: 52% 12%;
  border-top-right-radius: 52% 12%;
  transform-origin: bottom center;
  transform: scaleY(var(--fill-scale));
  transition: transform 380ms ease-out;
  z-index: 3;
  pointer-events: none;
}

.top-bar .btn.primary {
  background: transparent;
  color: #000000;
  border: 2px solid #1f2430;
  box-shadow: none;
}

.top-bar .btn.primary:hover {
  background: rgba(0, 0, 0, 0.06);
}

.top-bar .btn.primary:active {
  background: rgba(0, 0, 0, 0.12);
  box-shadow: none;
}

.avatar-cluster {
  display: grid;
  gap: 12px;
  position: absolute;
}

/* Bottom row — hero stacks above fixed intro gradient (z-index 3); lift avatars above footer strip */
.cluster-bottom {
  grid-template-columns: repeat(4, 1fr);
  width: min(400px, 88vw);
  max-width: 440px;
  top: auto;
  bottom: max(120px, 20vh);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  opacity: 1;
  z-index: 2;
  pointer-events: none;
}

@media (min-width: 1101px) {
  .cluster-bottom {
    bottom: max(140px, 24vh);
  }
}

.cluster-left {
  grid-template-columns: repeat(2, 1fr);
  width: 210px;
  left: 78px;
  top: 30%;
  transform: translateY(-50%);
  opacity: 1;
}

.cluster-right {
  grid-template-columns: repeat(2, 1fr);
  width: 210px;
  right: 78px;
  top: 34%;
  transform: translateY(-50%);
  opacity: 1;
}

.avatar {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transition: transform 2200ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 2200ms ease-out;
  will-change: transform;
}

.avatar-emoji {
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.a1 {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  --duration: 2.4s;
  --delay: 0.1s;
}

.a2 {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  --duration: 2.8s;
  --delay: 0.25s;
}

.a3 {
  background: linear-gradient(135deg, var(--accent-green), var(--primary));
  --duration: 2.6s;
  --delay: 0.35s;
}

.a4 {
  background: linear-gradient(135deg, var(--accent-cyan), var(--secondary));
  --duration: 2.9s;
  --delay: 0.15s;
}

.a5 {
  background: linear-gradient(135deg, var(--card), var(--primary));
  --duration: 2.7s;
  --delay: 0.05s;
}

.a6 {
  background: linear-gradient(135deg, var(--accent-green), var(--card));
  --duration: 2.5s;
  --delay: 0.2s;
}

.a7 {
  background: linear-gradient(135deg, var(--primary), var(--card));
  --duration: 2.9s;
  --delay: 0.4s;
}

.a8 {
  background: linear-gradient(135deg, var(--secondary), var(--card));
  --duration: 2.4s;
  --delay: 0.3s;
}

.a9 {
  background: linear-gradient(135deg, var(--accent-cyan), var(--card));
  --duration: 3s;
  --delay: 0.1s;
}

.a10 {
  background: linear-gradient(135deg, var(--primary), var(--accent-green));
  --duration: 2.5s;
  --delay: 0.05s;
}

.a11 {
  background: linear-gradient(135deg, var(--secondary), var(--accent-cyan));
  --duration: 2.7s;
  --delay: 0.35s;
}

.a12 {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  --duration: 2.8s;
  --delay: 0.2s;
}

.a13 {
  background: linear-gradient(135deg, var(--card), var(--secondary));
  --duration: 2.6s;
  --delay: 0.4s;
}

.footer {
  background: transparent;
  color: var(--footer-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  padding: 22px 32px 28px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer a {
  color: inherit;
  font-weight: 600;
}

.footer .social-link {
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer .social-link svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.footer-copy {
  font-weight: 600;
}

/* ── Legal & FAQ pages ─────────────────────────────────────────────── */

.legal-page .top-bar {
  position: sticky;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-main {
  min-height: 100vh;
  padding: 120px 7vw 100px;
  display: block;
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content h1 {
  margin: 0 0 8px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(36px, 5.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000000;
}

.legal-effective {
  margin: 0 0 36px;
  font-size: 14px;
  font-weight: 500;
  color: #6e6e73;
}

.legal-content h2 {
  margin: 36px 0 12px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--primary);
}

.legal-content h3 {
  margin: 24px 0 8px;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #000000;
}

.legal-content p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
  color: #1c1c1e;
}

.legal-content ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-content li {
  font-size: 15px;
  line-height: 1.65;
  color: #1c1c1e;
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: #5b54e0;
}

.legal-page .footer {
  position: static;
  margin-top: 40px;
  padding: 22px 7vw 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0;
}

.faq-item:first-of-type {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 28px;
}

.faq-item summary {
  padding: 20px 0;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
  color: #000000;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  transition: transform 200ms ease-out;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0 0 20px;
  padding-right: 32px;
}

@media (max-width: 1100px) {
  .top-bar {
    padding: 20px 18px;
  }

  .nav {
    gap: 8px;
    margin-left: auto;
  }

  .nav-desktop-link {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .top-bar .nav-cta {
    border: 0 !important;
    outline: 0;
    border-radius: 0;
    padding: 0;
    text-decoration: none;
    background: transparent;
    color: #000000;
    box-shadow: none;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: clamp(20px, 5.2vw, 30px);
    font-weight: 700;
    line-height: 1.05;
  }

  .top-bar .nav-cta:hover,
  .top-bar .nav-cta:active {
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .top-bar .brand-name {
    display: none;
  }

  .top-bar .brand-mark {
    width: 44px;
    height: 44px;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    display: flex;
    padding: 22px 16px 40px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    z-index: 40;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(104%);
    opacity: 0;
    pointer-events: none;
    transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
      opacity 320ms cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform, opacity;
  }

  .mobile-menu.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-close {
    align-self: flex-end;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    font-size: 68px;
    line-height: 0.54;
  }

  .mobile-menu-main {
    margin-top: min(18vh, 180px);
    gap: 58px;
  }

  .mobile-menu-link {
    padding: 0;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 1;
  }

  .mobile-menu-link:hover {
    background: transparent;
  }

  .mobile-menu-cta {
    min-width: min(86vw, 540px);
    padding: 22px 30px;
    font-size: clamp(38px, 7.2vw, 54px);
  }

  .mobile-menu-footer {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    gap: 34px;
  }

  .mobile-menu-footer-links {
    gap: 34px;
    font-size: clamp(30px, 5vw, 44px);
  }

  .mobile-menu-socials .social-link svg {
    width: clamp(54px, 8.5vw, 76px);
    height: clamp(54px, 8.5vw, 76px);
  }

  .mobile-menu-socials {
    gap: clamp(16px, 3.8vw, 28px);
  }

  .mobile-menu-copy {
    font-size: clamp(30px, 4.8vw, 42px);
  }

  .intro {
    padding-top: 76px;
  }

  .intro-cta {
    padding: 12px 24px;
  }

  .intro-bottom-box {
    height: 126vh;
  }

  .cluster-bottom {
    width: min(300px, 86vw);
    bottom: max(100px, 18vh);
    grid-template-columns: repeat(4, 1fr);
  }

  .cluster-left,
  .cluster-right {
    display: none;
  }

  .footer {
    display: none;
  }

  .jobs-page .top-bar,
  .legal-page .top-bar {
    position: sticky;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-wrap: nowrap;
    row-gap: 0;
  }

  .jobs-page .top-bar .brand-name,
  .legal-page .top-bar .brand-name {
    display: inline;
  }

  .jobs-page .top-bar .brand-mark,
  .legal-page .top-bar .brand-mark {
    width: 52px;
    height: 52px;
  }

  .jobs-page .nav,
  .legal-page .nav {
    margin-left: auto;
  }

  .jobs-page .jobs-main {
    padding-top: 26px;
    padding-bottom: 38px;
  }

  .legal-page .legal-main {
    padding: 26px 18px 38px;
  }

  .jobs-page .footer,
  .legal-page .footer {
    display: flex;
    position: static;
    margin-top: 26px;
    padding: 14px 14px 18px;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .jobs-page .footer-copy,
  .jobs-page .footer-links,
  .legal-page .footer-copy,
  .legal-page .footer-links {
    white-space: normal;
  }

  .jobs-page .footer-links,
  .legal-page .footer-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@keyframes introArrowBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes heroEmojiBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes clozieFlyIn {
  0% {
    opacity: 0;
    transform: translateY(380px) scale(0.72);
  }
  62% {
    opacity: 1;
    transform: translateY(-34px) scale(1.18);
  }
  82% {
    opacity: 1;
    transform: translateY(10px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.jobs-main {
  min-height: 100vh;
  padding: 120px 7vw 130px;
  display: block;
}

.jobs-board {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 28px;
}

.jobs-board h1 {
  margin: 0;
  text-align: center;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000000;
}

.jobs-intro {
  margin: 16px auto 44px;
  max-width: 760px;
  text-align: center;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.34;
  color: #000000;
}

.jobs-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 46px;
}

.jobs-filter-label {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #6c63ff;
}

.jobs-filter-pill {
  border: 0;
  background: #ffffff;
  color: #000000;
  min-width: 180px;
  border-radius: 999px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  letter-spacing: 0.03em;
  cursor: pointer;
  position: relative;
}

.jobs-filter-pill::after {
  content: "⌄";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #000000;
}

.jobs-filter-pill select {
  width: 100%;
  border: 0;
  background: transparent;
  color: #000000;
  font: inherit;
  letter-spacing: inherit;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 22px;
  cursor: pointer;
  outline: none;
}

.jobs-group {
  margin-bottom: 38px;
}

.jobs-empty {
  margin: 20px 0 0;
  text-align: center;
  color: #6e6e73;
  font-size: 15px;
  font-weight: 600;
}

.jobs-group h2 {
  margin: 0 0 12px;
  color: #ff5f9e;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.jobs-role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.jobs-role-title {
  font-size: clamp(14px, 1.4vw, 18px);
  color: #000000;
}

.jobs-apply-btn {
  border: 0;
  background: #3a83eb;
  color: #ffffff;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease-out, visibility 220ms ease-out;
}

.waitlist-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.waitlist-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 16, 0.58);
}

.waitlist-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 620px);
  min-height: 560px;
  padding: 36px 34px 34px;
  background: #f6e35a;
  border-radius: 42% 58% 53% 47% / 35% 36% 64% 65%;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.waitlist-close {
  position: absolute;
  top: 24px;
  right: 26px;
  border: 0;
  background: transparent;
  color: #6e6e73;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.waitlist-arrow {
  font-size: 44px;
  color: #000000;
  animation: waitlistArrow 1.2s ease-in-out infinite;
  align-self: center;
  margin-top: 2px;
}

.waitlist-card h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(34px, 4.8vw, 52px);
  color: #000000;
  text-align: center;
}

.waitlist-form {
  width: min(100%, 430px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.waitlist-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.waitlist-form input {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  font: 600 16px/1 "Inter", system-ui, sans-serif;
  color: #000000;
  background: rgba(255, 255, 255, 0.92);
}

.waitlist-form input::placeholder {
  color: #8e8e93;
}

.waitlist-submit {
  align-self: center;
  margin-top: 6px;
  background: #1f2430;
  color: #ffffff;
  min-width: 150px;
  text-transform: lowercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.waitlist-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

/* Must override flex above — otherwise [hidden] is ignored and both panels stack. */
.waitlist-panel[hidden] {
  display: none !important;
}

.waitlist-success-panel {
  text-align: center;
  padding: 8px 0 0;
}

.waitlist-success-emoji {
  margin: 0;
  font-size: clamp(40px, 8vw, 56px);
  line-height: 1;
  color: #000000;
}

.waitlist-card h2.waitlist-success-heading {
  font-size: clamp(28px, 4.2vw, 44px);
}

.waitlist-success-sub {
  margin: 0;
  max-width: 320px;
  font-size: 17px;
  line-height: 1.4;
  color: #1c1c1e;
}

.waitlist-form-iframe {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  visibility: hidden;
}

.coming-soon-card {
  min-height: 420px;
  text-align: center;
}

.coming-soon-star {
  font-size: 44px;
}

.coming-soon-card p {
  margin: 6px 0 0;
  max-width: 360px;
  font-size: 17px;
  line-height: 1.4;
  color: #000000;
}

@keyframes waitlistArrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@media (max-width: 800px) {
  .jobs-main {
    padding: 110px 18px 120px;
  }

  .jobs-board h1 {
    font-size: clamp(34px, 8vw, 44px);
  }

  .jobs-intro {
    margin: 14px auto 28px;
    font-size: 15px;
    line-height: 1.35;
  }

  .jobs-filters {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 28px;
  }

  .jobs-filter-label {
    font-size: 16px;
    text-align: center;
  }

  .jobs-filter-pill {
    min-width: 0;
    width: 100%;
    font-size: 14px;
    padding: 9px 14px;
  }

  .jobs-group h2 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .jobs-role-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .jobs-role-title {
    font-size: 14px;
  }

  .jobs-apply-btn {
    font-size: 13px;
    padding: 8px 14px;
  }

  .waitlist-card {
    min-height: 520px;
    padding: 30px 20px 30px;
    border-radius: 36% 64% 50% 50% / 34% 36% 64% 66%;
  }

  .waitlist-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .jobs-main {
    padding: 104px 14px 118px;
  }

  .jobs-board h1 {
    font-size: 32px;
  }

  .jobs-intro {
    font-size: 14px;
  }

  .jobs-filter-pill {
    font-size: 13px;
  }

  .jobs-role-title {
    font-size: 13px;
  }

  .jobs-apply-btn {
    font-size: 12px;
    padding: 7px 12px;
  }

  .jobs-page .top-bar {
    padding: 14px 14px 12px;
  }

  .jobs-page .brand-name {
    font-size: clamp(18px, 4.2vw, 22px);
  }

  .jobs-page .nav {
    width: auto;
    justify-content: flex-end;
    gap: 8px;
  }

  .jobs-page .nav-link {
    padding: 8px 6px;
  }

  .jobs-page .top-bar .btn.primary {
    padding: 8px 12px;
    font-size: 13px;
  }

  .jobs-page .footer {
    align-items: flex-start;
  }
}
