/*
 * Pop pages (landing, dashboard). Ported from the A/B landing mock. Colours, fonts and radii come from the pop
 * tokens (packages/tokens/src/pop.css); motion durations and easing from the pastel tokens.
 * Everything is prefixed lp- so it can't collide with Tailwind utilities like .container.
 */

.pop-page {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
  overflow-x: clip;
  background: var(--pop-paper);
  color: var(--pop-ink);
  font-family: var(--pop-font-body);
}

.pop-page a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.pop-page :focus-visible {
  outline: 2px solid var(--pop-violet);
  outline-offset: 3px;
}

.lp-ambient,
.lp-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.lp-ambient {
  z-index: -3;
  background:
    radial-gradient(circle at 10% 12%, color-mix(in srgb, var(--pop-yellow) 22%, transparent), transparent 28%),
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--pop-violet) 14%, transparent), transparent 26%),
    radial-gradient(circle at 85% 84%, color-mix(in srgb, var(--pop-mint) 16%, transparent), transparent 28%);
}

.lp-noise {
  z-index: -2;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.lp-container {
  width: min(calc(100% - 32px), 1180px);
  margin: 0 auto;
}

/* Header */

.lp-header {
  position: relative;
  z-index: 10;
  padding-top: max(14px, env(safe-area-inset-top));
}

.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px;
  border: 1px solid var(--pop-line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--pop-paper) 78%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgb(49 36 94 / 6%);
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--pop-font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.lp-brand-mark {
  width: 34px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 12px 12px 12px 4px;
  background: var(--pop-ink);
  color: var(--pop-white);
  box-shadow: 6px 6px 0 var(--pop-yellow);
  transform: rotate(-2deg);
}

.lp-nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--pop-ink);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  transition:
    transform var(--motion-base) var(--motion-ease),
    background-color var(--motion-base) var(--motion-ease),
    color var(--motion-base) var(--motion-ease);
}

/* Hero */

.lp-hero {
  padding: 46px 0 70px;
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lp-eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 31px;
  border-radius: 50%;
  background: var(--pop-pink);
  box-shadow: 16px 0 0 var(--pop-yellow), 32px 0 0 var(--pop-mint);
}

.lp-h1 {
  margin: 0;
  max-width: 760px;
  font-family: var(--pop-font-display);
  font-size: clamp(44px, 14vw, 68px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.072em;
}

.lp-h1-line {
  display: block;
}

.lp-h1-accent {
  position: relative;
  z-index: 0;
  display: inline-block;
}

.lp-h1-accent::after {
  content: "";
  position: absolute;
  left: -1.5%;
  right: -2%;
  bottom: 0.04em;
  z-index: -1;
  height: 0.22em;
  border-radius: var(--r-pill);
  background: var(--pop-yellow);
  transform: rotate(-1.2deg);
}

.lp-hero-copy {
  max-width: 650px;
  margin: 30px 0 26px;
  color: var(--pop-ink-muted);
  font-size: 17px;
  line-height: 1.52;
}

.lp-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.lp-cta {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border-radius: var(--r-lg);
  background: var(--pop-ink);
  color: var(--pop-white);
  font-weight: 800;
  box-shadow: var(--pop-offset) var(--pop-offset) 0 var(--pop-pink);
  transition:
    transform var(--motion-base) var(--motion-ease),
    box-shadow var(--motion-base) var(--motion-ease);
}

.pop-page .lp-cta {
  color: var(--pop-white);
}

.lp-cta-arrow {
  font-size: 21px;
  transition: transform var(--motion-base) var(--motion-ease);
}

.lp-promise {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--pop-stone);
  font-size: 14px;
  line-height: 1.4;
}

.lp-promise-badge {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pop-ink);
  border-radius: 50%;
  background: var(--pop-mint);
  font-weight: 900;
}

/* Hero illustration */

.lp-visual {
  position: relative;
  width: 100%;
  min-height: 430px;
  margin-top: 10px;
}

.lp-blob {
  position: absolute;
  inset: 30px 0 18px 6px;
  border-radius: 46% 54% 64% 36% / 44% 37% 63% 56%;
  background: var(--pop-violet);
  box-shadow: var(--pop-shadow);
  transform: rotate(5deg);
}

.lp-resume {
  position: absolute;
  top: 72px;
  left: 50%;
  width: 77%;
  height: 320px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--pop-ink) 12%, transparent);
  border-radius: 26px;
  background: var(--pop-white);
  box-shadow: 0 32px 80px rgb(39 27 96 / 24%);
  transform: translateX(-50%) rotate(-4deg);
}

.lp-resume-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--pop-ink) 9%, transparent);
}

.lp-resume-name {
  font-family: var(--pop-font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.lp-resume-role {
  margin-top: 5px;
  color: var(--pop-stone);
  font-size: 11px;
}

.lp-resume-chip {
  padding: 7px 10px;
  border-radius: var(--r-pill);
  background: var(--pop-verified-wash);
  color: var(--pop-verified-ink);
  font-size: 9px;
  font-weight: 800;
}

.lp-resume-section {
  margin-top: 14px;
}

.lp-resume-label {
  margin-bottom: 9px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lp-line {
  height: 8px;
  margin: 8px 0;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--pop-ink) 8%, transparent);
}

.lp-line-dark {
  background: color-mix(in srgb, var(--pop-ink) 30%, transparent);
}

.lp-sticker {
  position: absolute;
  z-index: 4;
  border: 1px solid var(--pop-ink);
  box-shadow: 7px 7px 0 var(--pop-ink);
  font-weight: 800;
}

.lp-sticker-proof {
  top: 32px;
  right: 4px;
  padding: 11px 13px;
  border-radius: 18px 18px 7px 18px;
  background: var(--pop-yellow);
  font-size: 11px;
  transform: rotate(5deg);
}

.lp-sticker-job {
  bottom: 28px;
  left: -6px;
  padding: 14px;
  border-radius: 22px 8px 22px 22px;
  background: var(--pop-pink);
  font-size: 12px;
  transform: rotate(-5deg);
}

.lp-sticker-job small {
  display: block;
  margin-bottom: 7px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
}

.lp-sticker-job strong {
  display: block;
  max-width: 160px;
  line-height: 1.2;
}

.lp-sticker-track {
  right: 0;
  bottom: 18px;
  width: 92px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 50%;
  background: var(--pop-mint);
  font-size: 11px;
  text-align: center;
  transform: rotate(8deg);
}

.lp-spark {
  position: absolute;
  top: 10px;
  left: 9%;
  width: 62px;
  height: 62px;
  border-radius: 6px;
  background: var(--pop-orange);
  clip-path: polygon(50% 0, 61% 34%, 100% 23%, 69% 50%, 100% 77%, 61% 66%, 50% 100%, 39% 66%, 0 77%, 31% 50%, 0 23%, 39% 34%);
  transform: rotate(-10deg);
}

/* How it works */

.lp-how {
  padding: 28px 0 72px;
}

.lp-section-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.lp-h2 {
  margin: 0;
  font-family: var(--pop-font-display);
  font-size: clamp(40px, 11vw, 76px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.lp-section-note {
  max-width: 370px;
  margin: 0;
  color: var(--pop-stone);
  font-size: 15px;
  line-height: 1.55;
}

.lp-steps {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-step {
  position: relative;
  grid-column: 1 / -1;
  min-height: 250px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--pop-ink);
  border-radius: var(--pop-r-lg);
  transition:
    transform var(--motion-slow) var(--motion-ease),
    box-shadow var(--motion-slow) var(--motion-ease);
}

.lp-step:nth-child(1) {
  background: var(--pop-yellow);
}

.lp-step:nth-child(2) {
  background: var(--pop-blue);
}

.lp-step:nth-child(3) {
  background: var(--pop-pink);
}

.lp-step:nth-child(4) {
  background: var(--pop-mint);
}

.lp-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lp-step-num {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--pop-ink);
  border-radius: 50%;
  background: color-mix(in srgb, var(--pop-white) 66%, transparent);
  font-family: var(--pop-font-display);
  font-size: 17px;
  font-weight: 800;
}

.lp-step-icon {
  font-size: 36px;
  line-height: 1;
  transform: rotate(8deg);
}

.lp-step h3 {
  margin: 42px 0 10px;
  font-family: var(--pop-font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.lp-step p {
  max-width: 440px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

/* Closing */

.lp-closing {
  padding: 18px 0 86px;
}

.lp-closing-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  min-height: 320px;
  padding: 30px 24px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--pop-ink);
  color: var(--pop-white);
  box-shadow: var(--pop-shadow);
}

.lp-closing-card::before,
.lp-closing-card::after {
  content: "";
  position: absolute;
}

.lp-closing-card::before {
  top: -80px;
  right: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--pop-violet);
  opacity: 0.95;
}

.lp-closing-card::after {
  right: 120px;
  bottom: -100px;
  width: 170px;
  height: 170px;
  border-radius: 44% 56% 50% 50%;
  background: var(--pop-pink);
  transform: rotate(20deg);
}

.lp-closing-copy {
  position: relative;
  z-index: 2;
}

.lp-closing .lp-h2 {
  max-width: 700px;
  font-size: clamp(40px, 11vw, 70px);
}

.lp-closing p {
  max-width: 600px;
  color: color-mix(in srgb, var(--pop-white) 70%, transparent);
  font-size: 17px;
  line-height: 1.55;
}

.pop-page .lp-closing .lp-cta {
  background: var(--pop-white);
  color: var(--pop-ink);
  box-shadow: var(--pop-offset) var(--pop-offset) 0 var(--pop-yellow);
}

.lp-truth {
  position: relative;
  z-index: 2;
  justify-self: start;
  width: min(100%, 320px);
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--pop-white) 24%, transparent);
  border-radius: var(--pop-r-lg);
  background: color-mix(in srgb, var(--pop-white) 8%, transparent);
  backdrop-filter: blur(12px);
  transform: rotate(2deg);
}

.lp-truth-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--pop-mint);
  color: var(--pop-ink);
  font-size: 24px;
}

.lp-truth strong {
  display: block;
  font-family: var(--pop-font-display);
  font-size: 22px;
  line-height: 1.15;
}

.lp-truth span {
  display: block;
  margin-top: 10px;
  color: color-mix(in srgb, var(--pop-white) 68%, transparent);
  font-size: 14px;
  line-height: 1.45;
}

/* Footer */

.lp-footer {
  padding: 0 0 max(44px, env(safe-area-inset-bottom));
}

.lp-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--pop-line);
  color: var(--pop-stone);
  font-size: 14px;
}

.pop-page .lp-footer-inner a {
  color: var(--pop-ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hover only where there's a pointer that hovers, so taps on phones don't leave things lifted. */
@media (hover: hover) {
  .lp-nav-link:hover {
    background: var(--pop-ink);
    color: var(--pop-white);
    transform: translateY(-2px);
  }

  .lp-cta:hover {
    transform: translate(-2px, -2px);
    box-shadow: calc(var(--pop-offset) + 3px) calc(var(--pop-offset) + 3px) 0 var(--pop-pink);
  }

  .pop-page .lp-closing .lp-cta:hover {
    box-shadow: calc(var(--pop-offset) + 3px) calc(var(--pop-offset) + 3px) 0 var(--pop-yellow);
  }

  .lp-cta:hover .lp-cta-arrow {
    transform: translateX(4px);
  }

  .lp-step:hover {
    transform: translateY(-7px) rotate(-0.3deg);
    box-shadow: 9px 10px 0 var(--pop-ink);
  }
}

/* Small phones: the stickers crowd the resume card, so pull them in. */
@media (max-width: 380px) {
  .lp-visual {
    min-height: 400px;
  }

  .lp-resume {
    height: 296px;
  }
}

@media (min-width: 621px) {
  .lp-container {
    width: min(calc(100% - 40px), 1180px);
  }

  .lp-header {
    padding-top: 26px;
  }

  .lp-nav {
    padding: 12px 14px;
    border-radius: var(--r-pill);
  }

  .lp-brand {
    font-size: 17px;
  }

  .lp-brand-mark {
    width: 38px;
    box-shadow: 7px 7px 0 var(--pop-yellow);
  }

  .lp-hero {
    padding: 54px 0 94px;
  }

  .lp-h1 {
    font-size: clamp(54px, 7.2vw, 104px);
  }

  .lp-hero-copy {
    font-size: clamp(18px, 1.9vw, 22px);
  }

  .lp-hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .lp-promise {
    max-width: 300px;
  }

  .lp-visual {
    max-width: 620px;
    min-height: 520px;
    margin: 0 auto;
  }

  .lp-blob {
    inset: 26px 8px 20px 22px;
  }

  .lp-resume {
    top: 86px;
    width: 72%;
    height: 430px;
    padding: 28px;
  }

  .lp-resume-name {
    font-size: 25px;
  }

  .lp-resume-section {
    margin-top: 21px;
  }

  .lp-sticker-proof {
    right: 0;
    padding: 15px 18px;
    font-size: 13px;
  }

  .lp-sticker-job {
    bottom: 38px;
    padding: 18px;
    font-size: 16px;
  }

  .lp-sticker-track {
    right: 18px;
    bottom: 28px;
    width: 112px;
    font-size: 13px;
  }

  .lp-spark {
    width: 84px;
    height: 84px;
  }

  .lp-how {
    padding-bottom: 96px;
  }

  .lp-steps {
    gap: 18px;
  }

  .lp-step {
    grid-column: span 6;
    min-height: 284px;
  }

  .lp-step h3 {
    margin-top: 60px;
  }

  .lp-closing-card {
    padding: 46px;
    border-radius: var(--pop-r-xl);
  }

  .lp-footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 901px) {
  .lp-hero {
    padding-top: 78px;
  }

  .lp-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  }

  .lp-visual {
    max-width: none;
    min-height: 610px;
  }

  .lp-section-top {
    flex-direction: row;
    align-items: flex-end;
  }

  .lp-step:nth-child(1),
  .lp-step:nth-child(4) {
    grid-column: span 5;
  }

  .lp-step:nth-child(2),
  .lp-step:nth-child(3) {
    grid-column: span 7;
  }

  .lp-closing-card {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .lp-truth {
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pop-page *,
  .pop-page *::before,
  .pop-page *::after {
    transition: none !important;
  }

  .lp-nav-link:hover,
  .lp-cta:hover,
  .lp-cta:hover .lp-cta-arrow,
  .lp-step:hover {
    transform: none;
  }
}

/*
 * Dashboard. Same palette as the landing page, turned down: no tilts or stickers, so the tracker
 * stays calm to read. The existing paste-box / how-steps / job-card markup is restyled in place.
 */

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-nav-link {
  background: transparent;
  color: var(--pop-ink);
  cursor: pointer;
  font-family: var(--pop-font-body);
}

.lp-nav-link-solid {
  background: var(--pop-ink);
  color: var(--pop-white);
}

.pop-dash {
  padding: 40px 0 56px;
}

.pop-title {
  margin: 0;
  font-family: var(--pop-font-display);
  font-size: clamp(38px, 11vw, 48px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.pop-lede {
  margin: 18px 0 0;
  color: var(--pop-ink-muted);
  font-size: 16px;
  line-height: 1.55;
}

.pop-section-title {
  margin: 0;
  font-family: var(--pop-font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.pop-page .paste-box {
  padding: 10px;
  border: 1px solid var(--pop-ink);
  border-radius: var(--pop-r-lg);
  background: var(--pop-white);
  box-shadow: var(--pop-offset) var(--pop-offset) 0 var(--pop-yellow);
}

.pop-page .paste-box-icon {
  stroke: var(--pop-ink);
}

.pop-page .paste-box-input {
  border-color: var(--pop-line);
  border-radius: var(--r-lg);
  background: var(--pop-paper);
  color: var(--pop-ink);
  font-family: var(--pop-font-body);
}

.pop-page .paste-box-input::placeholder {
  color: var(--pop-stone);
}

.pop-page .paste-box-input:focus {
  border-color: var(--pop-violet);
  background: var(--pop-white);
}

.pop-page .paste-box-chip {
  border-color: var(--pop-ink);
  background: var(--pop-white);
  color: var(--pop-ink);
  font: 700 14px var(--pop-font-body);
}

.pop-page .pastel-button {
  min-height: 56px;
  border-radius: var(--r-lg);
  background: var(--pop-ink);
  color: var(--pop-white);
  font: 800 16px var(--pop-font-body);
}

.pop-page .paste-box .pastel-button {
  margin-top: 10px;
}

.pop-page .desk-panel {
  padding: 24px;
  border: 1px solid var(--pop-ink);
  border-radius: var(--pop-r-lg);
  background: var(--pop-white);
  box-shadow: none;
}

.pop-page .how-title {
  margin: 0;
  color: var(--pop-ink);
  font-family: var(--pop-font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.pop-page .how-steps {
  gap: 18px;
  margin-top: 20px;
}

.pop-page .how-steps p:first-child {
  font-family: var(--pop-font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pop-page .how-steps p + p {
  color: var(--pop-stone);
}

.pop-page .how-num {
  width: 34px;
  height: 34px;
  border: 1px solid var(--pop-ink);
  color: var(--pop-ink);
  font-family: var(--pop-font-display);
  font-weight: 800;
}

.pop-page .how-steps li:nth-child(1) .how-num {
  background: var(--pop-yellow);
}

.pop-page .how-steps li:nth-child(2) .how-num {
  background: var(--pop-blue);
}

.pop-page .how-steps li:nth-child(3) .how-num {
  background: var(--pop-pink);
}

.pop-page .how-steps li:nth-child(4) .how-num {
  background: var(--pop-mint);
}

/* Tracker cards */

.pop-page .job-card {
  padding: 18px;
  border: 1px solid var(--pop-ink);
  border-radius: 20px;
  background: var(--pop-white);
}

.pop-page .job-card .font-medium {
  font-family: var(--pop-font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pop-page .job-card[data-state="ready"] {
  box-shadow: 6px 6px 0 var(--pop-mint);
}

.pop-page .job-card[data-state="needs_a_look"] {
  border-color: var(--pop-pink);
}

.pop-page .job-pill {
  border: 1px solid var(--pop-ink);
  background: var(--pop-paper);
  color: var(--pop-ink);
  font-weight: 700;
}

.pop-page .job-pill-dot {
  background: var(--pop-violet);
}

.pop-page .job-card[data-state="ready"] .job-pill,
.pop-page .job-card[data-state="offer"] .job-pill {
  background: var(--pop-mint);
  color: var(--pop-ink);
}

.pop-page .job-card[data-state="needs_a_look"] .job-pill {
  background: color-mix(in srgb, var(--pop-pink) 22%, var(--pop-white));
  color: var(--pop-ink);
}

.pop-page .job-step-bar {
  height: 6px;
  background: color-mix(in srgb, var(--pop-ink) 8%, transparent);
}

.pop-page .job-step[data-status="done"] .job-step-bar {
  background: var(--pop-violet);
}

.pop-page .job-step[data-status="active"] .job-step-bar {
  background: linear-gradient(
    90deg,
    var(--pop-violet) 0%,
    color-mix(in srgb, var(--pop-violet) 25%, var(--pop-white)) 50%,
    var(--pop-violet) 100%
  );
  background-size: 200% 100%;
}

.pop-page .job-step-label {
  color: var(--pop-stone);
}

.pop-page .job-step[data-status="active"] .job-step-label {
  color: var(--pop-ink);
  font-weight: 700;
}

.pop-page .job-look {
  border: 1px solid var(--pop-pink);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--pop-pink) 14%, var(--pop-white));
  color: var(--pop-ink);
  font-family: var(--pop-font-body);
}

.pop-page .job-action {
  border-color: var(--pop-ink);
  background: var(--pop-white);
  color: var(--pop-ink);
  font: 700 14px var(--pop-font-body);
}

.pop-page .job-action-primary {
  background: var(--pop-ink);
  color: var(--pop-white);
}

@media (min-width: 621px) {
  .pop-dash {
    padding: 64px 0 80px;
  }

  .pop-page .desk-panel {
    padding: 32px;
  }
}

@media (min-width: 64rem) {
  .pop-title {
    font-size: 60px;
  }
}

@media (hover: hover) {
  .lp-nav-link-solid:hover {
    background: var(--pop-violet);
    border-color: var(--pop-violet);
  }
}

.lp-brand,
.lp-nav-link {
  white-space: nowrap;
}

@media (max-width: 420px) {
  .lp-nav-actions {
    gap: 6px;
  }

  .lp-nav-actions .lp-nav-link {
    padding: 0 12px;
  }
}

/*
 * Bridge for pages built on the pastel variables and shadcn/ui (the /welcome steps).
 * Inside .theme-pop the pastel names and the shadcn theme point at pop values, so those
 * components pick up the new palette without per-component overrides. The shadcn vars are
 * restated here because at :root they already resolved against the pastel colours.
 */
.theme-pop {
  --linen: var(--pop-paper);
  --paper: var(--pop-white);
  --sand: color-mix(in srgb, var(--pop-ink) 5%, var(--pop-paper));
  --line: var(--pop-line);
  --stone: var(--pop-stone);
  --ink-soft: var(--pop-ink-muted);
  --ink: var(--pop-ink);
  --coral: var(--pop-pink);
  --coral-deep: var(--pop-pink-deep);
  --coral-wash: color-mix(in srgb, var(--pop-pink) 16%, var(--pop-white));
  --coral-ink: var(--pop-pink-deep);
  --font-display: var(--pop-font-display);
  --font-body: var(--pop-font-body);
  --shadow-sm: none;

  --background: var(--pop-paper);
  --foreground: var(--pop-ink);
  --card: var(--pop-white);
  --card-foreground: var(--pop-ink);
  --popover: var(--pop-white);
  --popover-foreground: var(--pop-ink);
  --primary: var(--pop-ink);
  --primary-foreground: var(--pop-white);
  --secondary: var(--sand);
  --secondary-foreground: var(--pop-ink);
  --muted: var(--sand);
  --muted-foreground: var(--pop-stone);
  --accent: color-mix(in srgb, var(--pop-violet) 12%, var(--pop-white));
  --accent-foreground: var(--pop-ink);
  --destructive: var(--pop-pink-deep);
  --border: var(--pop-line);
  --input: var(--pop-line);
  --ring: var(--pop-violet);
}

/* One step at a time (/welcome): a single centred column. */
/* The steps bring their own top margin (mt-10), so the column only pads the bottom. */
.pop-flow {
  max-width: 36rem;
  padding: 0 0 56px;
}

.pop-page .home-title {
  font-family: var(--pop-font-display);
  font-size: clamp(34px, 10vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

/* Cards and the drop zone get the ink outline the dashboard uses. */
.pop-page .review-card,
.pop-page .gh-card,
.pop-page .source-card,
.pop-page .drop-zone {
  border: 1px solid var(--pop-ink);
  border-radius: 20px;
  box-shadow: none;
}

.pop-page .drop-zone {
  border-style: dashed;
  border-width: 2px;
  border-radius: var(--pop-r-lg);
  background: var(--pop-white);
}

.pop-page .drop-zone:hover,
.pop-page .drop-zone[data-dragging] {
  border-color: var(--pop-violet);
  background: color-mix(in srgb, var(--pop-violet) 8%, var(--pop-white));
}

.pop-page .drop-zone:focus-within {
  border-color: var(--pop-violet);
  outline-color: color-mix(in srgb, var(--pop-violet) 25%, transparent);
}

.pop-page .drop-zone-icon {
  width: 56px;
  height: 56px;
  padding: 12px;
  border: 1px solid var(--pop-ink);
  border-radius: 16px;
  background: var(--pop-yellow);
  stroke: var(--pop-ink);
  box-shadow: 4px 4px 0 var(--pop-ink);
}

.pop-page .drop-zone-title {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pop-page .welcome-promise svg {
  width: 28px;
  height: 28px;
  margin-top: -3px;
  padding: 4px;
  border: 1px solid var(--pop-ink);
  border-radius: 50%;
  background: var(--pop-mint);
  stroke: var(--pop-ink);
}

.pop-page .welcome-problem {
  border: 1px solid var(--pop-pink);
  color: var(--pop-ink);
}

.pop-page .review-secondary {
  border-color: var(--pop-ink);
  font-family: var(--pop-font-body);
  font-weight: 700;
}

.pop-page .gh-repo[data-picked] {
  border-color: var(--pop-ink);
  background: color-mix(in srgb, var(--pop-mint) 35%, var(--pop-white));
}

.pop-page .gh-check {
  accent-color: var(--pop-ink);
}

@media (min-width: 621px) {
  .pop-flow {
    padding: 24px 0 80px;
  }
}
